From cf58eedec7c5fd7548f633a2ce4400d3e86406bd Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 30 Nov 2021 13:08:58 +0100 Subject: [PATCH] fix up queue-4.4/fuse-release-pipe-buf-after-last-use.patch --- queue-4.4/fuse-release-pipe-buf-after-last-use.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/queue-4.4/fuse-release-pipe-buf-after-last-use.patch b/queue-4.4/fuse-release-pipe-buf-after-last-use.patch index 869f1bd7a9e..a64bb82027e 100644 --- a/queue-4.4/fuse-release-pipe-buf-after-last-use.patch +++ b/queue-4.4/fuse-release-pipe-buf-after-last-use.patch @@ -25,9 +25,9 @@ Signed-off-by: Greg Kroah-Hartman --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c -@@ -903,6 +903,11 @@ static int fuse_try_move_page(struct fus - if (fuse_check_page(newpage) != 0) - goto out_fallback_unlock; +@@ -922,6 +922,11 @@ static int fuse_try_move_page(struct fus + return err; + } + page_cache_get(newpage); + @@ -35,8 +35,8 @@ Signed-off-by: Greg Kroah-Hartman + lru_cache_add_file(newpage); + /* - * This is a new and locked page, it shouldn't be mapped or - * have any special flags on it + * Release while we have extra ref on stolen page. Otherwise + * anon_pipe_buf_release() might think the page can be reused. @@ -929,11 +934,6 @@ static int fuse_try_move_page(struct fus buf->ops->release(cs->pipe, buf); buf->ops = NULL; -- 2.47.2