From 1945fee939932f7879539360c587316b9c2bbadd Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Mon, 19 Nov 2012 10:49:04 +0800 Subject: [PATCH] --- yaml --- r: 347604 b: refs/heads/master c: 5e62ad30157d0da04cf40c6d1a2f4bc840948b9c h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ceph/caps.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 9d446114ece9..d1b5a0dcfd14 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d2cc4dde9206aa2c7fb237aa689d3277cc070547 +refs/heads/master: 5e62ad30157d0da04cf40c6d1a2f4bc840948b9c diff --git a/trunk/fs/ceph/caps.c b/trunk/fs/ceph/caps.c index 2d0141e95c88..8072aefc427c 100644 --- a/trunk/fs/ceph/caps.c +++ b/trunk/fs/ceph/caps.c @@ -2390,7 +2390,7 @@ static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant, &atime); /* 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); ci->i_max_size = max_size; if (max_size >= ci->i_wanted_max_size) {