afs: Fix where page->private is set during write
authorDavid Howells <dhowells@redhat.com>
Mon, 26 Oct 2020 14:05:33 +0000 (14:05 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 29 Oct 2020 13:53:04 +0000 (13:53 +0000)
commitf792e3ac82fe2c6c863e93187eb7ddfccab68fa7
tree1e030d68b9a0ed8d98046945baf86f12d91fbbde
parent21db2cdc667f744691a407105b7712bc18d74023
afs: Fix where page->private is set during write

In afs, page->private is set to indicate the dirty region of a page.  This
is done in afs_write_begin(), but that can't take account of whether the
copy into the page actually worked.

Fix this by moving the change of page->private into afs_write_end().

Fixes: 4343d00872e1 ("afs: Get rid of the afs_writeback record")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/write.c