提交 5e62ad30 编写于 作者: Y Yan, Zheng 提交者: Alex Elder

ceph: Don't update i_max_size when handling non-auth cap

The cap from non-auth mds doesn't have a meaningful max_size value.
Signed-off-by: NYan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: NSage Weil <sage@inktank.com>
上级 d2cc4dde
...@@ -2390,7 +2390,7 @@ static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant, ...@@ -2390,7 +2390,7 @@ static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant,
&atime); &atime);
/* max size increase? */ /* max size increase? */
if (max_size != ci->i_max_size) { if (ci->i_auth_cap == cap && max_size != ci->i_max_size) {
dout("max_size %lld -> %llu\n", ci->i_max_size, max_size); dout("max_size %lld -> %llu\n", ci->i_max_size, max_size);
ci->i_max_size = max_size; ci->i_max_size = max_size;
if (max_size >= ci->i_wanted_max_size) { if (max_size >= ci->i_wanted_max_size) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册