diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-19 20:55:50 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-28 02:03:01 -0400 |
commit | 64aa7ed98db489d1c41ef140876ada38498678ab (patch) | |
tree | 47aacafa1511c4116f3bf383a9bbee1efef2cc0f /fs/f2fs/dir.c | |
parent | 1646cfac952ff87fcbc18a77164472aa61d08094 (diff) |
f2fs: change get_new_data_page to pass a locked node page
This patch is for passing a locked node page to get_dnode_of_data.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/dir.c')
-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 1ac6b93036b7..7db6e58622d9 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c | |||
@@ -287,7 +287,7 @@ static int make_empty_dir(struct inode *inode, struct inode *parent) | |||
287 | struct f2fs_dir_entry *de; | 287 | struct f2fs_dir_entry *de; |
288 | void *kaddr; | 288 | void *kaddr; |
289 | 289 | ||
290 | dentry_page = get_new_data_page(inode, 0, true); | 290 | dentry_page = get_new_data_page(inode, NULL, 0, true); |
291 | if (IS_ERR(dentry_page)) | 291 | if (IS_ERR(dentry_page)) |
292 | return PTR_ERR(dentry_page); | 292 | return PTR_ERR(dentry_page); |
293 | 293 | ||
@@ -448,7 +448,7 @@ start: | |||
448 | bidx = dir_block_index(level, (le32_to_cpu(dentry_hash) % nbucket)); | 448 | bidx = dir_block_index(level, (le32_to_cpu(dentry_hash) % nbucket)); |
449 | 449 | ||
450 | for (block = bidx; block <= (bidx + nblock - 1); block++) { | 450 | for (block = bidx; block <= (bidx + nblock - 1); block++) { |
451 | dentry_page = get_new_data_page(dir, block, true); | 451 | dentry_page = get_new_data_page(dir, NULL, block, true); |
452 | if (IS_ERR(dentry_page)) | 452 | if (IS_ERR(dentry_page)) |
453 | return PTR_ERR(dentry_page); | 453 | return PTR_ERR(dentry_page); |
454 | 454 | ||