diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2012-11-18 21:49:04 -0500 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2012-12-13 09:13:07 -0500 |
commit | 5e62ad30157d0da04cf40c6d1a2f4bc840948b9c (patch) | |
tree | 4df421054149b1b90f844e4d39efd56e2ed9671a /fs/ceph/caps.c | |
parent | d2cc4dde9206aa2c7fb237aa689d3277cc070547 (diff) |
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: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r-- | fs/ceph/caps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 2d0141e95c88..8072aefc427c 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c | |||
@@ -2390,7 +2390,7 @@ static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant, | |||
2390 | &atime); | 2390 | &atime); |
2391 | 2391 | ||
2392 | /* max size increase? */ | 2392 | /* max size increase? */ |
2393 | if (max_size != ci->i_max_size) { | 2393 | if (ci->i_auth_cap == cap && max_size != ci->i_max_size) { |
2394 | dout("max_size %lld -> %llu\n", ci->i_max_size, max_size); | 2394 | dout("max_size %lld -> %llu\n", ci->i_max_size, max_size); |
2395 | ci->i_max_size = max_size; | 2395 | ci->i_max_size = max_size; |
2396 | if (max_size >= ci->i_wanted_max_size) { | 2396 | if (max_size >= ci->i_wanted_max_size) { |