All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joel Becker <Joel.Becker@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2: Cache some system inodes of other nodes.
Date: Thu, 12 Aug 2010 18:28:05 -0700	[thread overview]
Message-ID: <20100813012805.GI22777@mail.oracle.com> (raw)
In-Reply-To: <4C649E16.7040704@oracle.com>

On Fri, Aug 13, 2010 at 09:21:26AM +0800, Tao Ma wrote:
> Sunil Mushran wrote:
> >        if (is_global_system_inode(type)
> >                arr = &(osb->global_system_inodes[type]);
> >        else {
> >                BUG_ON(slot == OCFS2_INVALID_SLOT);
> >                BUG_ON(type < OCFS2_FIRST_LOCAL_SYSTEM_INODE ||
> >                        type > LOCAL_GROUP_QUOTA_SYSTEM_INODE);
> >                tmp = (slot * NUM_LOCAL_SYSTEM_INODES) +
> >                      (type - OCFS2_FIRST_LOCAL_SYSTEM_INODE);
> >                arr = &(osb->local_system_inodes[tmp];
> >        }
> >
> >How does this look?
> oh, since both of you prefer a simple system_inode array, I will
> rework it. Thanks.

	In Sunil's proposal, you can easily keep the "which remote
inodes to keep" question very local.

		if ((slot == my_slot) ||
		    (type == TYPE1) ||
		    (type == TYPE2) ...) {
			local_system_inodes[x] = inode;

Joel


-- 

"Conservative, n.  A statesman who is enamoured of existing evils,
 as distinguished from the Liberal, who wishes to replace them
 with others."
	- Ambrose Bierce, The Devil's Dictionary

Joel Becker
Consulting Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127

      reply	other threads:[~2010-08-13  1:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12  9:03 [Ocfs2-devel] [PATCH] ocfs2: Cache some system inodes of other nodes Tao Ma
2010-08-12  9:43 ` Joel Becker
2010-08-13  0:49   ` Tao Ma
2010-08-13  1:04     ` Joel Becker
2010-08-13  1:20       ` Tao Ma
2010-08-13  1:03   ` Sunil Mushran
2010-08-13  1:21     ` Tao Ma
2010-08-13  1:28       ` Joel Becker [this message]

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=20100813012805.GI22777@mail.oracle.com \
    --to=joel.becker@oracle.com \
    --cc=ocfs2-devel@oss.oracle.com \
    /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.