ocfs2: Optionally return filldir errors
authorMark Fasheh <mark.fasheh@oracle.com>
Mon, 24 Sep 2007 21:25:27 +0000 (14:25 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 12 Oct 2007 18:54:41 +0000 (11:54 -0700)
Modify ocfs2_dir_foreach_blk() to optionally return any error from the
filldir callback. This way ocfs2_dirforeach() can terminate early, as
opposed to always passing through the entire directory. This fixes a bug
introduced during a previous code refactor where ocfs2_empty_dir() would
loop infinitely.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>

No differences found