staging: lustre: llite: add error handler in inode prepare phase
authorwang di <[email protected]>
Tue, 16 Aug 2016 20:18:52 +0000 (16:18 -0400)
committerGreg Kroah-Hartman <[email protected]>
Sun, 21 Aug 2016 13:57:36 +0000 (15:57 +0200)
commitc3397e7e677b1186f0442293de415f1c070b9d5d
treeebdd3024cddc21f68f1d138178227f6ca0815b8b
parent8877d3bff10ab1d02794c43013be7e68b83ce7ea
staging: lustre: llite: add error handler in inode prepare phase

Add error handler during inode inialization, so inode will
become bad inode if something bad happens during inode prepare
phase, otherwise the striped directory will not get its layout
and being mis-regarded as normal directory.

Signed-off-by: wang di <[email protected]>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4930
Reviewed-on: http://review.whamcloud.com/10170
Reviewed-by: Lai Siyao <[email protected]>
Reviewed-by: Fan Yong <[email protected]>
Reviewed-by: John L. Hammond <[email protected]>
Reviewed-by: Oleg Drokin <[email protected]>
Signed-off-by: James Simmons <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/lustre/lustre/llite/llite_internal.h
drivers/staging/lustre/lustre/llite/llite_lib.c
drivers/staging/lustre/lustre/llite/namei.c