]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: when updating an entry with RC_NOCACHE, just free it
authorJeff Layton <jlayton@redhat.com>
Mon, 4 Feb 2013 13:18:04 +0000 (08:18 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 4 Feb 2013 22:19:11 +0000 (17:19 -0500)
commit309f7f357fbf667bf5eb7b5be5ec2f95f9252a68
tree298eb991a69be4a86aae6c3396dec27ff0122c52
parentd2309d2f44ea704a6996b68e1cb6fa1aa9ff30ad
nfsd: when updating an entry with RC_NOCACHE, just free it

There's no need to keep entries around that we're declaring RC_NOCACHE.
Ditto if there's a problem with the entry.

With this change too, there's no need to test for RC_UNUSED in the
search function. If the entry's in the hash table then it's either
INPROG or DONE.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c