Skip to content

Commit

Permalink
f2fs: set the correct place of initializing *res_page
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yuan Zhong authored and Jaegeuk Kim committed Apr 10, 2015
1 parent 7fd9701 commit b1f73b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/f2fs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b1f73b7

Please sign in to comment.