projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d3bc60
)
cifs: initialize ->tlink_tree in cifs_setup_cifs_sb()
author
Al Viro
<
[email protected]
>
Fri, 17 Jun 2011 13:20:04 +0000
(09:20 -0400)
committer
Al Viro
<
[email protected]
>
Fri, 24 Jun 2011 22:39:42 +0000
(18:39 -0400)
no need to wait until cifs_read_super() and we need it done
by the time cifs_mount() will be called.
Acked-by: Pavel Shilovsky <
[email protected]
>
Reviewed-by: Jeff Layton <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/cifs/cifsfs.c
patch
|
blob
|
history
fs/cifs/connect.c
patch
|
blob
|
history
diff --git
a/fs/cifs/cifsfs.c
b/fs/cifs/cifsfs.c
index ec19161dd2785a634b8b0c9a0e0716806431e04c..61c7aa870f1c25e81e5c06f4781c68b6e2c17cbf 100644
(file)
--- a/
fs/cifs/cifsfs.c
+++ b/
fs/cifs/cifsfs.c
@@
-113,9
+113,6
@@
cifs_read_super(struct super_block *sb, struct smb_vol *volume_info,
cifs_sb = CIFS_SB(sb);
- spin_lock_init(&cifs_sb->tlink_tree_lock);
- cifs_sb->tlink_tree = RB_ROOT;
-
rc = cifs_mount(cifs_sb, volume_info);
if (rc) {
diff --git
a/fs/cifs/connect.c
b/fs/cifs/connect.c
index 3011ac8c9249e0f052682549f85b2116a436dcb4..9f09adf51edc495a6f853667b9dda71a6b31f491 100644
(file)
--- a/
fs/cifs/connect.c
+++ b/
fs/cifs/connect.c
@@
-2663,6
+2663,9
@@
void cifs_setup_cifs_sb(struct smb_vol *pvolume_info,
{
INIT_DELAYED_WORK(&cifs_sb->prune_tlinks, cifs_prune_tlinks);
+ spin_lock_init(&cifs_sb->tlink_tree_lock);
+ cifs_sb->tlink_tree = RB_ROOT;
+
if (pvolume_info->rsize > CIFSMaxBufSize) {
cERROR(1, "rsize %d too large, using MaxBufSize",
pvolume_info->rsize);