udf: Return error from udf_find_entry()
authorFabian Frederick <fabf@skynet.be>
Wed, 8 Apr 2015 19:23:58 +0000 (21:23 +0200)
committerJan Kara <jack@suse.cz>
Mon, 18 May 2015 09:23:07 +0000 (11:23 +0200)
commit231473f6ddcef9c01993e0bfe36acc6f8e425c31
tree8f756c6d7ddbd6ffffd90f35ccdc3746e0cc8f9c
parent6ce638367382ea8015cf64619e9bca4e207ef36f
udf: Return error from udf_find_entry()

Return appropriate error from udf_find_entry() instead of just NULL.
That way we can distinguish the fact that some error happened when
looking up filename (and return error to userspace) from the fact that
we just didn't find the filename. Also update callers of
udf_find_entry() accordingly.

[JK: Improved udf_find_entry() documentation]

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/namei.c