diff options
author | Yuan Zhong <yuan.mark.zhong@samsung.com> | 2015-03-07 05:07:42 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-10 18:08:37 -0400 |
commit | b1f73b79d26ffd8966404c268e558d6fec448814 (patch) | |
tree | 32c5546b0a4139ad4f662f64a0a147fd55b47675 | |
parent | 7fd97019b8db0668a4eb8b08d707bdce9f51d58e (diff) |
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 <yuan.mark.zhong@samsung.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fs/f2fs/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, | |||
219 | unsigned int max_depth; | 219 | unsigned int max_depth; |
220 | unsigned int level; | 220 | unsigned int level; |
221 | 221 | ||
222 | *res_page = NULL; | ||
223 | |||
222 | if (f2fs_has_inline_dentry(dir)) | 224 | if (f2fs_has_inline_dentry(dir)) |
223 | return find_in_inline_dir(dir, child, res_page); | 225 | return find_in_inline_dir(dir, child, res_page); |
224 | 226 | ||
225 | if (npages == 0) | 227 | if (npages == 0) |
226 | return NULL; | 228 | return NULL; |
227 | 229 | ||
228 | *res_page = NULL; | ||
229 | |||
230 | name_hash = f2fs_dentry_hash(child); | 230 | name_hash = f2fs_dentry_hash(child); |
231 | max_depth = F2FS_I(dir)->i_current_depth; | 231 | max_depth = F2FS_I(dir)->i_current_depth; |
232 | 232 | ||