[Ocfs2-devel] [PATCH 1/7] ocfs2: Introduce dir lookup helper struct

Joel Becker Joel.Becker at oracle.com
Fri Jan 30 14:22:04 PST 2009


On Fri, Jan 30, 2009 at 01:42:27PM -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.
> 
> Signed-off-by: Mark Fasheh <mfasheh at suse.com>

I really like this.

Signed-off-by: Joel Becker <joel.becker at oracle.com>

(I wish it didn't explode the stack of ocfs2_rename(), but, well, it's
rename).

-- 

Life's Little Instruction Book #306

	"Take a nap on Sunday afternoons."

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



More information about the Ocfs2-devel mailing list