]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix afs_store_data() to set mtime in new operation descriptor
authorDavid Howells <dhowells@redhat.com>
Thu, 11 Jun 2020 20:50:24 +0000 (21:50 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2020 23:04:30 +0000 (16:04 -0700)
commitc1fadb45e03b6b28e84e2ce3d75e99e8b09d8b03
treed43cbd13d61a0855ff47b701f7bf8d7160bf4489
parent7eb4d1b16a7e39fe8b63d458e2d24ffd65d4e974
afs: Fix afs_store_data() to set mtime in new operation descriptor

Fix afs_store_data() so that it sets the mtime in the new operation
descriptor otherwise the mtime on the server gets set to 0 when a write is
stored to the server.

Fixes: 590fdde7416c ("afs: Build an abstraction around an "operation" concept")
Reported-by: Dave Botsch <botsch@cnf.cornell.edu>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/write.c