]> git.baikalelectronics.ru Git - kernel.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)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 4 Oct 2022 17:18:08 +0000 (19:18 +0200)
commit44dab1370690a760e9abed9d377db78d03a9558b
tree38708e8f57d14ba7a2f5c4521af7ddbd1957d7c9
parenta258c90411101e4b838f1a76034cb52e97ddfdf7
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