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>
This commit is contained in:
parent
aa1d627207
commit
b4b924c7a1
|
@ -2192,6 +2192,7 @@ int __ceph_setattr(struct inode *inode, struct iattr *attr)
|
||||||
inode_dirty_flags = __ceph_mark_dirty_caps(ci, dirtied,
|
inode_dirty_flags = __ceph_mark_dirty_caps(ci, dirtied,
|
||||||
&prealloc_cf);
|
&prealloc_cf);
|
||||||
inode->i_ctime = attr->ia_ctime;
|
inode->i_ctime = attr->ia_ctime;
|
||||||
|
inode_inc_iversion_raw(inode);
|
||||||
}
|
}
|
||||||
|
|
||||||
release &= issued;
|
release &= issued;
|
||||||
|
|
Loading…
Reference in New Issue