f2fs: reflow prepare_write_begin
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Nov 2022 09:15:17 +0000 (10:15 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 6 Jan 2023 23:13:10 +0000 (15:13 -0800)
commit44b0dfebbd829c64c242c0c6ee10f8a88ecfa8b3
tree45f95e08dce4fc2690f5cae05e5b498c7bdc98bb
parent2f51ade9524c609fcc4b05f230ecda356cd10b85
f2fs: reflow prepare_write_begin

Reflow prepare_write_begin so that it reads more straight forward,
and so that there is one place that does an extent cache lookup
instead of three, two of which are hidden in f2fs_get_block calls.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c