]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d4ac2f464e84f1ac87cfefe0a3d1bc997f0fd0b
tree1e030d68b9a0ed8d98046945baf86f12d91fbbde
parent40a9ae970e80fd672ecadb62f5056fdb3f427108
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: 58fd51d5e04a ("afs: Get rid of the afs_writeback record")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/write.c