Re: [f2fs-dev] [PATCH] f2fs: calculate the f2fs_stat_info into base_mem

2017-03-19 Thread Jaegeuk Kim
On 03/18, Kinglong Mee wrote: > The memory size of f2fs_stat_info also should be calculated. > > Signed-off-by: Kinglong Mee > --- > fs/f2fs/debug.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c > index

Re: [f2fs-dev] [PATCH] f2fs: copy all valid xattr data includes the last zero

2017-03-19 Thread Jaegeuk Kim
Hi Kinglong, On 03/18, Kinglong Mee wrote: > It's better coping all valid xattr data includes the last zero. Why do we need this? The size of txattr_addr would be larger than the space we need. Thanks, > > Signed-off-by: Kinglong Mee > --- > fs/f2fs/xattr.c | 4 ++--

Re: [f2fs-dev] [PATCH] f2fs: protect free nid operation with cp_rwsem

2017-03-19 Thread Jaegeuk Kim
Hi Chao, On 03/17, Chao Yu wrote: > - f2fs_balance_fs_bg > - build_free_nids > - __build_free_nids >- scan_nat_page > - add_free_nid > - f2fs_create >- f2fs_new_inode >

Re: [f2fs-dev] [PATCH] f2fs: don't allow volatile writes for non-regular file

2017-03-19 Thread kbuild test robot
-for-non-regular-file/20170319-221605 base: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) include