[Ocfs2-devel] [PATCH 07/15] ocfs2: Implement ocfs2_empty_dir() as a caller of ocfs2_dir_foreach()

Joel Becker Joel.Becker at oracle.com
Thu Sep 20 11:44:57 PDT 2007


On Wed, Sep 12, 2007 at 11:19:00AM -0700, Mark Fasheh wrote:
> We can preserve the behavior of ocfs2_empty_dir(), while getting rid of the
> open coded directory walk by just providing a smart filldir callback. This
> also automatically gets to use the dir readahead code, though in this case
> any advantage is minor at best.
> 
> Signed-off-by: Mark Fasheh <mark.fasheh at oracle.com>

	The filldir tricks are tasty.

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


-- 

Life's Little Instruction Book #335

	"Every so often, push your luck."

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