]> git.karo-electronics.de Git - linux-beck.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)
commit2c6b691c05bf77c4bc7c9f1a9b6d93a160928421
tree298eb991a69be4a86aae6c3396dec27ff0122c52
parent13cc8a78e89db0469e67ac9b3ae466b661af93fa
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