f2fs: fix to avoid using uninitialized variable
authorChao Yu <yuchao0@huawei.com>
Mon, 2 Mar 2020 09:34:27 +0000 (17:34 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 10 Mar 2020 16:18:33 +0000 (09:18 -0700)
commit06c7540fd29ccae351d1a9e0a0a817cb235618bd
tree71238c471f13b7dbf5c82820ca71252eee9b1710
parent7a88ddb56077d07257a5d0393a4be13e424ca755
f2fs: fix to avoid using uninitialized variable

In f2fs_vm_page_mkwrite(), if inode is compress one, and current mmapped
page locates in compressed cluster, we have to call f2fs_get_dnode_of_data()
to get its physical block address before f2fs_wait_on_block_writeback().

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c