]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ceph: remove the bump of i_version
authorJeff Layton <jlayton@redhat.com>
Mon, 30 Oct 2017 14:58:30 +0000 (10:58 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 13 Nov 2017 11:11:51 +0000 (12:11 +0100)
Eventually, we'll want to wire cephfs up to use the change attribute
that the cluster tracks instead, but for now this is unneeded.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c

index 16d8b9dac64908eb740983f47edcdd828a7b5342..ab81652198c48e1e90a5545cb06089a6fa30da1a 100644 (file)
@@ -787,7 +787,6 @@ static int fill_inode(struct inode *inode, struct page *locked_page,
 
        /* update inode */
        ci->i_version = le64_to_cpu(info->version);
-       inode->i_version++;
        inode->i_rdev = le32_to_cpu(info->rdev);
        inode->i_blkbits = fls(le32_to_cpu(info->layout.fl_stripe_unit)) - 1;