ceph: prevent i_version from going back
inode info from non-auth can be stale. Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
fa466743a9
commit
aae1a442f8
|
@ -889,6 +889,7 @@ static int fill_inode(struct inode *inode, struct page *locked_page,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* finally update i_version */
|
/* finally update i_version */
|
||||||
|
if (le64_to_cpu(info->version) > ci->i_version)
|
||||||
ci->i_version = le64_to_cpu(info->version);
|
ci->i_version = le64_to_cpu(info->version);
|
||||||
|
|
||||||
inode->i_mapping->a_ops = &ceph_aops;
|
inode->i_mapping->a_ops = &ceph_aops;
|
||||||
|
|
Loading…
Reference in New Issue