]> err.no Git - linux-2.6/commitdiff
NFS: Fix error recovery code in fs/nfs/inode.c:__init_nfs()
authorChuck Lever <cel@netapp.com>
Wed, 30 Nov 2005 23:08:19 +0000 (18:08 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 6 Jan 2006 19:58:48 +0000 (14:58 -0500)
 Red Hat found a problem in the error recovery logic in __init_nfs.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c

index 740d3cd40246e4cc7feb1a76b23cfe8906aff493..da58207b366b1dd854985e8ac9ce67baa69a78ee 100644 (file)
@@ -2152,11 +2152,11 @@ out:
 #ifdef CONFIG_PROC_FS
        rpc_proc_unregister("nfs");
 #endif
-       nfs_destroy_writepagecache();
 #ifdef CONFIG_NFS_DIRECTIO
-out0:
        nfs_destroy_directcache();
+out0:
 #endif
+       nfs_destroy_writepagecache();
 out1:
        nfs_destroy_readpagecache();
 out2: