From: Yuan Zhong Date: Sat, 7 Mar 2015 10:07:42 +0000 (+0000) Subject: f2fs: set the correct place of initializing *res_page X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1f73b79d26ffd8966404c268e558d6fec448814;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git f2fs: set the correct place of initializing *res_page The function 'find_in_inline_dir()' contain 'res_page' as an argument. So, we should initiaize 'res_page' before this function. Signed-off-by: Yuan Zhong Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 590aeef6f85e..a28909d9aea8 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -219,14 +219,14 @@ struct f2fs_dir_entry *f2fs_find_entry(struct inode *dir, unsigned int max_depth; unsigned int level; + *res_page = NULL; + if (f2fs_has_inline_dentry(dir)) return find_in_inline_dir(dir, child, res_page); if (npages == 0) return NULL; - *res_page = NULL; - name_hash = f2fs_dentry_hash(child); max_depth = F2FS_I(dir)->i_current_depth;