All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuan Kai Chiu <big.chiu@bigtera.com>
To: ceph-devel@vger.kernel.org
Cc: Kuan Kai Chiu <big.chiu@bigtera.com>
Subject: [PATCH 2/2] mds: journal the projected root xattrs in add_root()
Date: Thu, 18 Apr 2013 14:43:26 +0800	[thread overview]
Message-ID: <1366267406-1449-3-git-send-email-big.chiu@bigtera.com> (raw)
In-Reply-To: <1366267406-1449-1-git-send-email-big.chiu@bigtera.com>

In EMetaBlob::add_root(), we should log the projected root xattrs
instead of original ones to reflect xattr changes.

Signed-off-by: Kuan Kai Chiu <big.chiu@bigtera.com>
---
 src/mds/events/EMetaBlob.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mds/events/EMetaBlob.h b/src/mds/events/EMetaBlob.h
index 7065460..439bd78 100644
--- a/src/mds/events/EMetaBlob.h
+++ b/src/mds/events/EMetaBlob.h
@@ -468,7 +468,7 @@ private:
 
     if (!pi) pi = in->get_projected_inode();
     if (!pdft) pdft = &in->dirfragtree;
-    if (!px) px = &in->xattrs;
+    if (!px) px = in->get_projected_xattrs();
 
     bufferlist snapbl;
     if (psnapbl)
-- 
1.7.9.5


  parent reply	other threads:[~2013-04-18  6:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18  6:43 [RESEND][PATCH 0/2] fix few root xattr bugs Kuan Kai Chiu
2013-04-18  6:43 ` [PATCH 1/2] mds: fix setting/removing xattrs on root Kuan Kai Chiu
2013-04-18  6:43 ` Kuan Kai Chiu [this message]
2013-04-18 18:04 ` [RESEND][PATCH 0/2] fix few root xattr bugs Gregory Farnum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1366267406-1449-3-git-send-email-big.chiu@bigtera.com \
    --to=big.chiu@bigtera.com \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.