Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aae1a442 authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov
Browse files

ceph: prevent i_version from going back



inode info from non-auth can be stale.

Signed-off-by: default avatar"Yan, Zheng" <zyan@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent fa466743
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -889,6 +889,7 @@ static int fill_inode(struct inode *inode, struct page *locked_page,
	}

	/* finally update i_version */
	if (le64_to_cpu(info->version) > ci->i_version)
		ci->i_version = le64_to_cpu(info->version);

	inode->i_mapping->a_ops = &ceph_aops;