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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 2 Aug 2012 21:36:07 +0000 (17:36 -0400)
commit3dd4765fce04c0b4af1e0bc4c0b10f906f95fabc
tree3a96a96f548b7fd124f007e7c8118a0e1eaf6cce
parent2d534926205db9ffce4bbbde67cb9b2cee4b835c
nfs: tear down caches in nfs_init_writepagecache when allocation fails

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

Cc: Bryan Schumaker <bjschuma@netapp.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c