]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nfs4 use mandatory attribute file type in nfs4_get_root
authorAndy Adamson <andros@netapp.com>
Wed, 16 Jun 2010 13:51:02 +0000 (09:51 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 Jun 2010 17:17:43 +0000 (13:17 -0400)
commitf799bdb355edaabd81b778087613409a8932fbe9
treee2d27df6984a11b3710fbc5ceb2dd874c375b3bb
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02
nfs4 use mandatory attribute file type in nfs4_get_root

S_ISDIR(fsinfo.fattr->mode) checks the file type rather than the mode bits,
so we should be checking for the NFS_ATTR_FATTR_TYPE fattr property.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
fs/nfs/getroot.c