RE: [f2fs-dev] [PATCH] f2fs: avoid overflow when large directory feathure is enabled

2014-05-27 Thread Chao Yu
ubject: Re: [f2fs-dev] [PATCH] f2fs: avoid overflow when large directory > feathure is enabled > > Hi, Chao > Good catch. Please, modify Documentation/filesytems/f2fs.txt Thank you for reminding me, I will add modification of f2fs.txt in the patch later. > > On Tue, May 27,

Re: [f2fs-dev] [PATCH] f2fs: avoid overflow when large directory feathure is enabled

2014-05-26 Thread Changman Lee
Hi, Chao Good catch. Please, modify Documentation/filesytems/f2fs.txt On Tue, May 27, 2014 at 09:06:52AM +0800, Chao Yu wrote: > When large directory feathure is enable, We have one case which could cause > overflow in dir_buckets() as following: > special case: level + dir_level >= 32 and level <

[f2fs-dev][PATCH] f2fs: avoid overflow when large directory feathure is enabled

2014-05-26 Thread Chao Yu
When large directory feathure is enable, We have one case which could cause overflow in dir_buckets() as following: special case: level + dir_level >= 32 and level < MAX_DIR_HASH_DEPTH / 2. Here we define MAX_DIR_BUCKETS to limit the return value when the condition could trigger potential overflow