mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
6ea75952d7
commit
0dd12c2195
1 changed files with 3 additions and 0 deletions
|
@ -98,6 +98,9 @@ cifs_read_super(struct super_block *sb, void *data,
|
||||||
if (cifs_sb == NULL)
|
if (cifs_sb == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
spin_lock_init(&cifs_sb->tlink_tree_lock);
|
||||||
|
INIT_RADIX_TREE(&cifs_sb->tlink_tree, GFP_KERNEL);
|
||||||
|
|
||||||
rc = bdi_setup_and_register(&cifs_sb->bdi, "cifs", BDI_CAP_MAP_COPY);
|
rc = bdi_setup_and_register(&cifs_sb->bdi, "cifs", BDI_CAP_MAP_COPY);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
kfree(cifs_sb);
|
kfree(cifs_sb);
|
||||||
|
|
Loading…
Add table
Reference in a new issue