[f2fs-dev] [PATCH] f2fs: fix to recover converted inline_data

2014-11-25 Thread Jaegeuk Kim
If an inode has converted inline_data which was written to the disk, we should set its inode flag for further fsync so that this inline_data can be recovered from sudden power off. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/f2fs/inli

[f2fs-dev] [PATCH 2/2 v2] f2fs: make clean the page before writing

2014-11-25 Thread Jaegeuk Kim
Change log from v1: o fix to handle # of dirty pages If a page is set to be written to the disk, we can make clean the page. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inline.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 914b6

[f2fs-dev] [PATCH 1/2] f2fs: fix deadlock during inline_data conversion

2014-11-25 Thread Jaegeuk Kim
A deadlock can be occurred: Thread 1] Thread 2] - f2fs_write_data_pages - f2fs_write_begin - lock_page(page #0) - grab_cache_page(page #X) - get_node_page(inode_page)

[f2fs-dev] [PATCH 2/2] f2fs: make clean the page before writing

2014-11-25 Thread Jaegeuk Kim
If a page is set to be written to the disk, we can make clean the page. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 914b6d3..7c96c27 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c @@ -110,6

Re: [f2fs-dev] [PATCH 1/3] f2fs: call flush_dcache_page when the page was updated

2014-11-25 Thread Changman Lee
Hi Simon, Thanks very much for your interest. It becomes more clear due to your explanation. Regards, Changman On Tue, Nov 25, 2014 at 08:05:23PM +0100, Simon Baatz wrote: > Hi Changman, > > On Mon, Nov 24, 2014 at 11:46:46AM +0900, Changman Lee wrote: > > Hi Simon, > > Thanks for your explanat

Re: [f2fs-dev] [PATCH 1/3] f2fs: call flush_dcache_page when the page was updated

2014-11-25 Thread Simon Baatz
Hi Changman, On Mon, Nov 24, 2014 at 11:46:46AM +0900, Changman Lee wrote: > Hi Simon, > Thanks for your explanation kindly. > > On Sun, Nov 23, 2014 at 11:08:54AM +0100, Simon Baatz wrote: > > Hi Changman, Jaegeuk, > > > > On Thu, Nov 20, 2014 at 05:47:29PM +0900, Changman Lee wrote: > > > On W