summaryrefslogtreecommitdiff
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2025-03-03 21:05:45 +0100
committerIngo Molnar <mingo@kernel.org>2025-03-03 21:05:45 +0100
commit1fff9f8730b00c39ec5055656e45ef69acd9409a (patch)
tree96fea59eb525c4e76ec0872ff74962c6f28fab8b /fs/fuse/dev.c
parent604ea3e90b17f27928a64d86259c57710c254438 (diff)
parent7eb172143d5508b4da468ed59ee857c6e5e01da6 (diff)
Merge tag 'v6.14-rc5' into x86/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 5b5f789b37eb..2b2d1b755544 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -838,6 +838,12 @@ static int fuse_check_folio(struct folio *folio)
return 0;
}
+/*
+ * Attempt to steal a page from the splice() pipe and move it into the
+ * pagecache. If successful, the pointer in @pagep will be updated. The
+ * folio that was originally in @pagep will lose a reference and the new
+ * folio returned in @pagep will carry a reference.
+ */
static int fuse_try_move_page(struct fuse_copy_state *cs, struct page **pagep)
{
int err;