]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: fix to return correct error number in f2fs_sync_node_pages()
authorChao Yu <chao@kernel.org>
Thu, 8 May 2025 05:14:27 +0000 (07:14 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 May 2025 15:21:58 +0000 (15:21 +0000)
commit43ba56a043b14426ca9ecac875ab357e32cb595e
tree23464ca7c3882c07f8bb614406912052f84b704a
parent0427e811c9bc85e660457487f1da61b1aaf63477
f2fs: fix to return correct error number in f2fs_sync_node_pages()

If __write_node_folio() failed, it will return AOP_WRITEPAGE_ACTIVATE,
the incorrect return value may be passed to userspace in below path,
fix it.

- sync_filesystem
 - sync_fs
  - f2fs_issue_checkpoint
   - block_operations
    - f2fs_sync_node_pages
     - __write_node_folio
     : return AOP_WRITEPAGE_ACTIVATE

Cc: stable@vger.kernel.org
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c