aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2020-10-22 14:40:31 +0100
committerDavid Howells <dhowells@redhat.com>2020-10-27 22:05:56 +0000
commitd383e346f97d6bb0d654bb3d63c44ab106d92d29 (patch)
tree95f45265515b57b620fa4608d933caa1e200dc97 /fs/afs/internal.h
parentafs: Fix a use after free in afs_xattr_get_acl() (diff)
downloadlinux-dev-d383e346f97d6bb0d654bb3d63c44ab106d92d29.tar.xz
linux-dev-d383e346f97d6bb0d654bb3d63c44ab106d92d29.zip
afs: Fix afs_launder_page to not clear PG_writeback
Fix afs_launder_page() to not clear PG_writeback on the page it is laundering as the flag isn't set in this case. Fixes: 4343d00872e1 ("afs: Get rid of the afs_writeback record") Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to '')
-rw-r--r--fs/afs/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h
index 81b0485fd22a..289f5dffa46f 100644
--- a/fs/afs/internal.h
+++ b/fs/afs/internal.h
@@ -812,6 +812,7 @@ struct afs_operation {
pgoff_t last; /* last page in mapping to deal with */
unsigned first_offset; /* offset into mapping[first] */
unsigned last_to; /* amount of mapping[last] */
+ bool laundering; /* Laundering page, PG_writeback not set */
} store;
struct {
struct iattr *attr;