]> www.infradead.org Git - users/hch/misc.git/commit
nfs: don't return AOP_WRITEPAGE_ACTIVATE from nfs_do_writepage
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Apr 2025 04:32:06 +0000 (06:32 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 14 May 2025 04:51:22 +0000 (06:51 +0200)
commit017f5248b4a9b692d640af7d8d03b836485a82a3
treec85404962c0010b46c6ff9089594dbf8c64211d3
parent7ba8b86034b6fda9570acf611f8cec11648ea022
nfs: don't return AOP_WRITEPAGE_ACTIVATE from nfs_do_writepage

nfs_do_writepage is a successful return that requires the caller to
unlock the folio.  Using it here requires special casing both in
nfs_do_writepage and nfs_writepages_callback and leaves a land mine in
nfs_wb_folio in case it ever set the flag.  Remove it and just
unconditionally unlock in nfs_writepages_callback.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/nfs/write.c