]> git.karo-electronics.de Git - linux-beck.git/commit
nfsd: open-code special directory-hardlink check
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 15 Aug 2011 20:59:55 +0000 (16:59 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Aug 2011 22:22:47 +0000 (18:22 -0400)
commit7d818a7b8fc8d26c24ee44ed1c5dece69455a7b6
tree660675f24b5dcb74630defb9a576d1cba6fb36a8
parent3d2544b1e4909b6dffa0d140273628913e255e45
nfsd: open-code special directory-hardlink check

We allow the fh_verify caller to specify that any object *except* those
of a given type is allowed, by passing a negative type.  But only one
caller actually uses it.  Open-code that check in the one caller.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsfh.c
fs/nfsd/vfs.c