Whamcloud - gitweb
LU-5892 lfsck: remove improper LASSERT in lfsck_needs_scan_dir 70/12670/2
authorFan Yong <fan.yong@intel.com>
Sat, 6 Sep 2014 20:13:49 +0000 (04:13 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 23 Nov 2014 07:13:36 +0000 (07:13 +0000)
commit4db8abadae3f8a393fe0d25e07575305ae3876da
tree75c429d57dbc4943861e3a66b8b943b211145c77
parent62a9ad817017d677b1914f0838d4a66ce64d2270
LU-5892 lfsck: remove improper LASSERT in lfsck_needs_scan_dir

Inside the lfsck_needs_scan_dir(), when the internal variable @fid
becomes the input @obj's parent FID, the internal variable @depth
may be still zero, so the original "LASSERT(depth > 0);" is improper
under such case. Then remove it.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I64f10be682c51c6ac5cc1af3497eb569281fcd21
Reviewed-on: http://review.whamcloud.com/12670
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_engine.c