f2fs: simplify return value handling in f2fs_fsync_node_pages
authorChristoph Hellwig <hch@lst.de>
Thu, 8 May 2025 05:14:31 +0000 (07:14 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 May 2025 15:23:31 +0000 (15:23 +0000)
commit0638f28b30621012ee4dac014b58c5a9588e65b1
tree28172b90c93bf5eceb29c0e0ee1e1cf31cc84949
parent84c5d16711a300949cfec83e76299a75b4cdf04a
f2fs: simplify return value handling in f2fs_fsync_node_pages

Always assign ret where the error happens, and jump to out instead
of multiple loop exit conditions to prepare for changes in the
__write_node_folio calling convention.

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/node.c