aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2010-10-08 12:20:12 -0400
committerSteve French <sfrench@us.ibm.com>2010-10-08 12:34:49 -0400
commit0dd12c21951e085357046b68c3a108273062d2aa (patch)
treebe512113fd0282dc82a9cdd7c7626dc2e7cb28d7 /fs/cifs/cifsfs.c
parent6ea75952d7c671ea8b0d7b66f82afcafbb5d20c2 (diff)
cifs: initialize tlink_tree_lock and tlink_tree
Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index c96345c3314d..3258c822328b 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -98,6 +98,9 @@ cifs_read_super(struct super_block *sb, void *data,
98 if (cifs_sb == NULL) 98 if (cifs_sb == NULL)
99 return -ENOMEM; 99 return -ENOMEM;
100 100
101 spin_lock_init(&cifs_sb->tlink_tree_lock);
102 INIT_RADIX_TREE(&cifs_sb->tlink_tree, GFP_KERNEL);
103
101 rc = bdi_setup_and_register(&cifs_sb->bdi, "cifs", BDI_CAP_MAP_COPY); 104 rc = bdi_setup_and_register(&cifs_sb->bdi, "cifs", BDI_CAP_MAP_COPY);
102 if (rc) { 105 if (rc) {
103 kfree(cifs_sb); 106 kfree(cifs_sb);