Re: [f2fs-dev] f2fs: add key function to handle inline dir

2014-10-21 Thread Dan Carpenter
Hello Chao Yu, The patch 9f06d1bb7c87: "f2fs: add key function to handle inline dir" from Sep 24, 2014, leads to the following static checker warning: fs/f2fs/inline.c:358 f2fs_convert_inline_dir() error: memcpy() 'dentry_blk->reserved' too small (3 vs 7) fs/f2fs/inline.c 355

[f2fs-dev] [PATCH] f2fs: Avoid returning uninitialized value to userspace from f2fs_trim_fs()

2014-10-21 Thread Jan Kara
If user specifies too low end sector for trimming, f2fs_trim_fs() will use uninitialized value as a number of trimmed blocks and returns it to userspace. Initialize number of trimmed blocks early to avoid the problem. Coverity-id: 1248809 CC: sta...@vger.kernel.org Signed-off-by: Jan Kara --- fs