Re: [f2fs-dev] [PATCH] f2fs: fix to truncate inline data past EOF

2015-03-05 Thread Jaegeuk Kim
Hi Chao, On Thu, Mar 05, 2015 at 05:41:32PM +0800, Chao Yu wrote: Previously if inode is with inline data, we will try to invalid partial inline data in page #0 when we truncate size of inode in truncate_partial_data_page(). And then we set page #0 to dirty, after this we can synchronize

[f2fs-dev] [PATCH] f2fs: fix to truncate inline data past EOF

2015-03-05 Thread Chao Yu
Previously if inode is with inline data, we will try to invalid partial inline data in page #0 when we truncate size of inode in truncate_partial_data_page(). And then we set page #0 to dirty, after this we can synchronize inode page with page #0 at -writepage(). But sometimes we will fail to

[f2fs-dev] [PATCH 1/2] f2fs: fix extent cache memory leak

2015-03-05 Thread Wanpeng Li
extent tree/node slab cache is created during f2fs insmod, how, it isn't destroyed during f2fs rmmod, this patch fix it by destroy extent tree/node slab cache once rmmod f2fs. Signed-off-by: Wanpeng Li wanpeng...@linux.intel.com --- fs/f2fs/super.c | 1 + 1 file changed, 1 insertion(+) diff

[f2fs-dev] [PATCH 2/2] f2fs: reduce searching region of segmap when set free section

2015-03-05 Thread Wanpeng Li
In __set_free we will check whether all segment are free in one section when free one segment, in order to set section to free status. But the searching region of segmap is from start segno to last segno of main area, it's not necessary. So let's just only check all segment bitmap of target

Re: [f2fs-dev] [PATCH v2] f2fs: fix max orphan inodes calculation

2015-03-05 Thread Chao Yu
Hi Changman, -Original Message- From: Changman Lee [mailto:cm224@samsung.com] Sent: Tuesday, March 03, 2015 9:40 AM To: linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim; Chao Yu; linux-fsde...@vger.kernel.org; linux-ker...@vger.kernel.org Subject: Re: [PATCH v2] f2fs: