aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-10-10 17:28:38 -0400
committerSteve French <sfrench@us.ibm.com>2005-10-10 17:28:38 -0400
commit9e2e85f82fa280e937ee42152e7cbaff78be01a2 (patch)
tree9613f8c41ddbbdfff180034945e14e6fffc8292c /fs/cifs
parentb387eaeb666f6a5e24990a1f4d6a0447ae14315d (diff)
[CIFS] Fix minor build problem with previous changeset
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/cifsfs.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index fd5eae37f2a8..99e087d3554f 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -408,21 +408,24 @@ static struct quotactl_ops cifs_quotactl_ops = {
408static void cifs_umount_begin(struct super_block * sblock) 408static void cifs_umount_begin(struct super_block * sblock)
409{ 409{
410 struct cifs_sb_info *cifs_sb; 410 struct cifs_sb_info *cifs_sb;
411 struct cifsTconInfo * tcon;
411 412
412 cifs_sb = CIFS_SB(sb); 413 cifs_sb = CIFS_SB(sb);
413 if(cifs_sb == NULL) 414 if(cifs_sb == NULL)
414 return -EIO; 415 return;
415 if(cifs_sb->tcon == NULL) 416
416 return -EIO; 417 tcon = cifs_sb->tcon;
418 if(tcon == NULL)
419 return;
417 down(&tcon->tconSem); 420 down(&tcon->tconSem);
418 if (atomic_read(&tcon->useCount) == 1) 421 if (atomic_read(&tcon->useCount) == 1)
419 tcon->tidStatus = CifsExiting; 422 tcon->tidStatus = CifsExiting;
420 up(&tcon->tconSem); 423 up(&tcon->tconSem);
421 424
422 if((cifs->sb->tcon->ses) && (cifs_sb->tcon->ses->server)) 425 if(tcon->ses && tcon->ses->server)
423 { 426 {
424 cERROR(1,("wake up tasks now - umount begin not complete")); 427 cERROR(1,("wake up tasks now - umount begin not complete"));
425 wake_up_all(&server->request_q); 428 wake_up_all(&tcon->ses->server->request_q);
426 } 429 }
427/* BB FIXME - finish add checks for tidStatus BB */ 430/* BB FIXME - finish add checks for tidStatus BB */
428 431