ceph: increment i_version when doing a setattr with caps
authorJeff Layton <jlayton@kernel.org>
Wed, 24 Aug 2022 13:24:42 +0000 (09:24 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 Oct 2022 17:18:08 +0000 (19:18 +0200)
commitb4b924c7a16e857b0715603456045251a49f2ea6
tree38708e8f57d14ba7a2f5c4521af7ddbd1957d7c9
parentaa1d627207cace003163dee24d1c06fa4e910c6b
ceph: increment i_version when doing a setattr with caps

When the client has enough caps to satisfy a setattr locally without
having to talk to the server, we currently do the setattr without
incrementing the change attribute.

Ensure that if the ctime changes locally, then the change attribute
does too.

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