]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
filemap: Add a version of folio_end_writeback that ignores dropbehind
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Sep 2025 16:48:15 +0000 (12:48 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 23 Sep 2025 17:29:50 +0000 (13:29 -0400)
commit010054a530aa266ee1711dfbe23fc06b6eb0fa48
tree7357f722c36e118ae31dfce2b2a843808fe97d6f
parent24bbd533f596a4544e17579e9f622918680e7bff
filemap: Add a version of folio_end_writeback that ignores dropbehind

Filesystems such as NFS may need to defer dropbehind until after their
2-stage writes are done. This adds a helper
folio_end_writeback_no_dropbehind() that allows them to release the
writeback flag without immediately dropping the folio.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
include/linux/pagemap.h
mm/filemap.c