]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
iversion: add a routine to update a raw value with a larger one
authorJeff Layton <jlayton@kernel.org>
Wed, 5 Jun 2019 21:24:22 +0000 (17:24 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:43 +0000 (14:01 +0200)
commit441d367644e2f60b37f36bfc656deee551acba5b
tree3f982314323d35df283530d228bda9047e99ed69
parent58981784a6926e14964bb0e41dca38d75976b946
iversion: add a routine to update a raw value with a larger one

Under ceph, clients can be independently updating iversion themselves,
while working under comprehensive sets of caps on an inode. In that
situation we always want to prefer the largest value of a change
attribute. Add a new function that will update a raw value with a larger
one, but otherwise leave it alone.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/iversion.h