]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix non-setting of mtime when writing into mmap
authorDavid Howells <dhowells@redhat.com>
Thu, 11 Jun 2020 23:15:13 +0000 (00:15 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 15 Jun 2020 14:41:02 +0000 (15:41 +0100)
commitfc0f5a11e612644a5c46a42540a220849fd4bb85
treee48e7cee846422809b72acc3b34d979ed50481b5
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
afs: Fix non-setting of mtime when writing into mmap

The mtime on an inode needs to be updated when a write is made into an
mmap'ed section.  There are three ways in which this could be done: update
it when page_mkwrite is called, update it when a page is changed from dirty
to writeback or leave it to the server and fix the mtime up from the reply
to the StoreData RPC.

Found with the generic/215 xfstest.

Fixes: a085c6b6c925 ("afs: Implement shared-writeable mmap")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/write.c