]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ceph: update the mtime when truncating up
authorJeff Layton <jlayton@kernel.org>
Thu, 25 Jul 2019 17:03:32 +0000 (13:03 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:24 +0000 (12:06 +0200)
commitc62498d7f9d37d5e60d61ca2a4e1f88211af7645
tree3bc639916b2b74aea405b2ac277d3587dbef1624
parent0ed26f3693fbe0aec107e2e97a053b3eabebfc92
ceph: update the mtime when truncating up

If we have Fx caps, and the we're truncating the size to be larger, then
we'll cache the size attribute change, but the mtime won't be updated.

Move the size handling before the mtime, and add ATTR_MTIME to ia_valid
in that case to make sure the mtime also gets updated.

This fixes xfstest generic/313.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c