All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ceph: Don't update i_max_size when handling non-auth cap
@ 2012-11-01  9:03 Yan, Zheng
  2012-11-01  9:03 ` [PATCH 1/2] mds: Don't acquire replica object's versionlock Yan, Zheng
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yan, Zheng @ 2012-11-01  9:03 UTC (permalink / raw)
  To: sage, ceph-devel; +Cc: Yan, Zheng

From: "Yan, Zheng" <zheng.z.yan@intel.com>

The cap from non-auth mds doesn't have a meaningful max_size value.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
---
 fs/ceph/caps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 3251e9c..c633d1d 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -2388,7 +2388,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) {
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-06  8:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-01  9:03 [PATCH 1/2] ceph: Don't update i_max_size when handling non-auth cap Yan, Zheng
2012-11-01  9:03 ` [PATCH 1/2] mds: Don't acquire replica object's versionlock Yan, Zheng
2012-11-05 18:52   ` Sage Weil
2012-11-06  8:22     ` Yan, Zheng
2012-11-01  9:03 ` [PATCH 2/2] ceph: Fix i_size update race Yan, Zheng
2012-11-01  9:03 ` [PATCH 2/2] mds: Allow try_eval to eval unstable locks in freezing object Yan, Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.