diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-10-14 04:34:26 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-04 01:07:33 +0100 |
commit | 59a0615540812297e4ff9673de5c1269413d0c40 (patch) | |
tree | 9b1796b36c6350fbb8d3902ac0bac212b4113126 /fs/f2fs/dir.c | |
parent | f2fs: reuse find_in_block code for find_in_inline_dir (diff) | |
download | linux-59a0615540812297e4ff9673de5c1269413d0c40.tar.xz linux-59a0615540812297e4ff9673de5c1269413d0c40.zip |
f2fs: fix to wait correct block type
The inode page needs to wait NODE block io.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/dir.c')
-rw-r--r-- | fs/f2fs/dir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 0b97b1921504..35cb1b3d94b9 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -283,8 +283,9 @@ ino_t f2fs_inode_by_name(struct inode *dir, struct qstr *qstr) void f2fs_set_link(struct inode *dir, struct f2fs_dir_entry *de, struct page *page, struct inode *inode) { + enum page_type type = f2fs_has_inline_dentry(dir) ? NODE : DATA; lock_page(page); - f2fs_wait_on_page_writeback(page, DATA); + f2fs_wait_on_page_writeback(page, type); de->ino = cpu_to_le32(inode->i_ino); set_de_type(de, inode); if (!f2fs_has_inline_dentry(dir)) |