diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-09-28 08:15:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-08 15:05:14 +0300 |
commit | e33c1e29d4c3afbdca7390ee97efcb29275d4061 (patch) | |
tree | 9972220c76b05ab50f67037529c980f6b805e959 /fs | |
parent | aafb371575161e315a98dee978b72f9d5357791b (diff) | |
download | linux-e33c1e29d4c3afbdca7390ee97efcb29275d4061.tar.xz |
f2fs: fix missing up_read
commit 89d13c38501df730cbb2e02c4499da1b5187119d upstream.
This patch fixes missing up_read call.
Fixes: c9b60788fc76 ("f2fs: fix to do sanity check with block address in main area")
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/node.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 0256e15af8bc..f4fe54047fb7 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1606,8 +1606,10 @@ static int f2fs_write_node_page(struct page *page, } if (__is_valid_data_blkaddr(ni.blk_addr) && - !f2fs_is_valid_blkaddr(sbi, ni.blk_addr, DATA_GENERIC)) + !f2fs_is_valid_blkaddr(sbi, ni.blk_addr, DATA_GENERIC)) { + up_read(&sbi->node_write); goto redirty_out; + } set_page_writeback(page); fio.old_blkaddr = ni.blk_addr; |