Whamcloud - gitweb
LU-4416 osd: using set_nlink to calm down WARN_ON message 71/11571/2
authorYang Sheng <yang.sheng@intel.com>
Mon, 25 Aug 2014 03:58:57 +0000 (11:58 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 30 Aug 2014 00:00:52 +0000 (00:00 +0000)
commit11220ac2f0d1245e14306f116f1c262662037740
tree68846599d880107980c93ddb301ba888cac9c6f0
parent4c3902d190dbdd3b5c5b2d95fa43fdde0ecf20ad
LU-4416 osd: using set_nlink to calm down WARN_ON message

Invoke inc_nlink with nlink=0 will trigger a WARN_ON
message. Flag I_LINKABLE can avoid this problem in
latest upstream kernel. But there exist a case that
WARN_ON was invoked and I_LINKABLE hasn't defined.
RHEL7 does so. Then we just using set_nlink in the
nlink=0 case.

Signed-off-by: Yang Sheng <yang.sheng@intel.com>
Change-Id: I1e110872b359ebd7fa883506c5592f072f26c1dc
Reviewed-on: http://review.whamcloud.com/11571
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_handler.c