]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
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)
committerXiubo Li <xiubli@redhat.com>
Fri, 26 Aug 2022 23:51:58 +0000 (07:51 +0800)
commitc79a6d94666bf79a5dbd68dc7faa8b815eba1ccf
tree9ff80634877e541e0ed97ccff1940d374d0a4c54
parentb5a88852c2fc0c8ecc8f2e13d20a4aad3b48fcb5
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>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
fs/ceph/inode.c