f2fs: Simplify SEEK_DATA implementation
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 24 Aug 2020 21:48:41 +0000 (22:48 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 11 Sep 2020 18:11:24 +0000 (11:11 -0700)
commit4cb03fecd3ff9adfaeb68267aac760eaaac0d7e1
tree3e431b11c80d676f7ae1d735032f0082f789d258
parent093749e296e29a4b0162eb925a6701a01e8c9a98
f2fs: Simplify SEEK_DATA implementation

Instead of finding the first dirty page and then seeing if it matches
the index of a block that is NEW_ADDR, delay the lookup of the dirty
bit until we've actually found a block that's NEW_ADDR.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c