From: Joel Becker <Joel.Becker@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 2/4] ocfs2: Introduce dir lookup helper struct
Date: Wed, 12 Nov 2008 18:59:59 -0800 [thread overview]
Message-ID: <20081113025959.GC27602@mail.oracle.com> (raw)
In-Reply-To: <1226543048-911-3-git-send-email-mfasheh@suse.com>
On Wed, Nov 12, 2008 at 06:24:06PM -0800, Mark Fasheh wrote:
> Many directory manipulation calls pass around a tuple of dirent, and it's
> containing buffer_head. Dir indexing has a bit more state, but instead of
> adding yet more arguments to functions, we introduce 'struct
> ocfs2_dir_lookup_result'. In this patch, it simply holds the same tuple, but
> future patches will add more state.
I really like this, especially that we're fixing functions that
return in two places (via the actual return and a ** argument). I'd be
tempted to pass the *lookup down into find_el and find_id just to
continue that pattern - but that's just me.
Also, rename, wow :-)
Signed-off-by: Joel Becker <joel.becker@oracle.com>
--
"People with narrow minds usually have broad tongues."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
next prev parent reply other threads:[~2008-11-13 2:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-13 2:24 [Ocfs2-devel] [RFC][PATCH 0/4] ocfs2: Directory indexing support Mark Fasheh
2008-11-13 2:24 ` [Ocfs2-devel] [PATCH 1/4] ocfs2: turn __ocfs2_remove_inode_range() into ocfs2_remove_btree_range() Mark Fasheh
2008-11-13 2:53 ` Joel Becker
2008-11-13 2:24 ` [Ocfs2-devel] [PATCH 2/4] ocfs2: Introduce dir lookup helper struct Mark Fasheh
2008-11-13 2:59 ` Joel Becker [this message]
2008-11-13 2:24 ` [Ocfs2-devel] [PATCH 3/4] ocfs2: Add a name indexed b-tree to directory inodes Mark Fasheh
2008-11-13 3:28 ` Joel Becker
2008-11-13 2:24 ` [Ocfs2-devel] [PATCH 4/4] ocfs2: Introduce dir free space list Mark Fasheh
2008-11-13 3:48 ` Joel Becker
2008-11-13 3:59 ` [Ocfs2-devel] [RFC][PATCH 0/4] ocfs2: Directory indexing support Joel Becker
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=20081113025959.GC27602@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.