ocfs2/xattr: assign errno to 'ret' in ocfs2_calc_xattr_init()
authorpiaojun <[email protected]>
Thu, 1 Feb 2018 00:14:51 +0000 (16:14 -0800)
committerLinus Torvalds <[email protected]>
Thu, 1 Feb 2018 01:18:35 +0000 (17:18 -0800)
commitc0a1a6d769aedd23c80fc12721cc98b126bec91f
tree01df73ac49cc941df59ad9469a9352bf5cad96dd
parentff26cc10aec128c3f86b5611fd5f59c71d49c0e3
ocfs2/xattr: assign errno to 'ret' in ocfs2_calc_xattr_init()

We need catch the errno returned by ocfs2_xattr_get_nolock() and assign
it to 'ret' for printing and noticing upper callers.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jun Piao <[email protected]>
Reviewed-by: Alex Chen <[email protected]>
Reviewed-by: Yiwen Jiang <[email protected]>
Acked-by: Gang He <[email protected]>
Acked-by: Changwei Ge <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Joseph Qi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/xattr.c