Skip to content
Commit 0bfbbf62 authored by Mark Fasheh's avatar Mark Fasheh
Browse files

ocfs2: Implement ocfs2_empty_dir() as a caller of ocfs2_dir_foreach()



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: default avatarMark Fasheh <mark.fasheh@oracle.com>
Reviewed-by: default avatarJoel Becker <joel.becker@oracle.com>
parent 5eae5b96
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment