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

ocfs2: Optionally return filldir errors



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: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 5b6a3a2b
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