[f2fs-dev] [GIT PULL] f2fs fix for 4.11-rc4

2017-03-20 Thread Jaegeuk Kim
Hi Linus, Could you please pull the below fixes? Thanks, The following changes since commit 97da3854c526d3a6ee05c849c96e48d21527606c: Linux 4.11-rc3 (2017-03-19 19:09:39 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git

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

2017-03-20 Thread Kinglong Mee
On 3/20/2017 11:08, Jaegeuk Kim wrote: > 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

[f2fs-dev] [PATCH] f2fs: fix race condition in between free nid allocator/initializer

2017-03-20 Thread Chao Yu
In below concurrent case, allocated nid can be loaded into free nid cache and be allocated again. Thread AThread B - f2fs_create - f2fs_new_inode - alloc_nid - __insert_nid_to_list(ALLOC_NID_LIST) - f2fs_balance_fs_bg

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

2017-03-20 Thread Chao Yu
Hi Jaegeuk, On 2017/3/20 6:44, Jaegeuk Kim wrote: > Hi Chao, > > On 03/17, Chao Yu wrote: >> - f2fs_balance_fs_bg >> - build_free_ni >> - __build_free_nids >>- scan_nat_page >> - add_free_nid >> - f2fs_create >>