Whamcloud - gitweb
b=19808 fix d_obtain_alias() misuse due to compat macro.
authoryangsheng <sheng.yang@oracle.com>
Wed, 24 Nov 2010 14:09:01 +0000 (22:09 +0800)
committerVitaly Fertman <vitaly.fertman@oracle.com>
Fri, 26 Nov 2010 22:58:04 +0000 (01:58 +0300)
commitf1c846f41f71d57200cbfbbc36b7040170996ce3
tree9f75bd51a6dddd3f0edff2282ee4bc364cba6809
parent219162ba6407dc6bdb4a875e146a1e57bc4294e4
b=19808 fix d_obtain_alias() misuse due to compat macro.

o=Adreas.Dilger
i=yangsheng
i=Oleg.Drokin

ll_iget_for_nfs() get a change from d_alloc_anon() to d_obtain_alias().
The former would NOT release the inode reference if there was an error, while
the latter does.  Hide this detail in the d_obtain_alias() compat macro, for
kernels that do not have this function, and remove it from the error handling
code at the caller, where it would drop the inode reference twice in rare error
cases on all kernels WITH d_obtain_alias() support (RHEL5 and newer).
lustre/autoconf/lustre-core.m4
lustre/include/linux/lustre_compat25.h
lustre/llite/llite_nfs.c