]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfs: tear down caches in nfs_init_writepagecache when allocation fails
authorJeff Layton <jlayton@redhat.com>
Thu, 2 Aug 2012 18:30:56 +0000 (14:30 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 12 Sep 2012 02:36:48 +0000 (03:36 +0100)
commitc52f6cc5d3e4dcb9167448614338a25a31573484
treebdeae7f1cd7fa9f8b9112dd3f294f8290681e55f
parent4e049fb9423043ed82a92504cf6befc97b274844
nfs: tear down caches in nfs_init_writepagecache when allocation fails

commit 3dd4765fce04c0b4af1e0bc4c0b10f906f95fabc upstream.

...and ensure that we tear down the nfs_commit_data cache too when
unloading the module.

Cc: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
[bwh: Backported to 3.2: drop the nfs_cdata_cachep cleanup; it doesn't exist]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/write.c