ocfs2: Implement ocfs2_empty_dir() as a caller of ocfs2_dir_foreach()
authorMark Fasheh <mark.fasheh@oracle.com>
Wed, 12 Sep 2007 18:19:00 +0000 (11:19 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 12 Oct 2007 18:54:37 +0000 (11:54 -0700)
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@oracle.com>
Reviewed-by: Joel Becker <joel.becker@oracle.com>

No differences found