Signed-off-by: Kinglong Mee <kinglongmee@xxxxxxxxx> --- fs/nfs/client.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index a13fada..52488ec 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -1447,13 +1447,11 @@ int __init nfs_fs_proc_init(void) /* a file of volumes that we have mounted */ p = proc_symlink("volumes", proc_fs_nfs, "../../net/nfsfs/volumes"); if (!p) - goto error_2; + goto error_1; return 0; -error_2: - remove_proc_entry("servers", proc_fs_nfs); error_1: - remove_proc_entry("fs/nfsfs", NULL); + remove_proc_subtree("fs/nfsfs", NULL); error_0: return -ENOMEM; } @@ -1463,9 +1461,7 @@ error_0: */ void nfs_fs_proc_exit(void) { - remove_proc_entry("volumes", proc_fs_nfs); - remove_proc_entry("servers", proc_fs_nfs); - remove_proc_entry("fs/nfsfs", NULL); + remove_proc_subtree("fs/nfsfs", NULL); } #endif /* CONFIG_PROC_FS */ -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html