cifs: update comments - [s/GlobalSMBSesLock/cifs_file_list_lock/g]
authorSuresh Jayaraman <sjayaraman@suse.de>
Mon, 18 Oct 2010 18:22:18 +0000 (23:52 +0530)
committerSteve French <sfrench@us.ibm.com>
Mon, 25 Oct 2010 00:19:01 +0000 (00:19 +0000)
GlobalSMBSesLock is now cifs_file_list_lock. Update comments to reflect this.

Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsglob.h
fs/cifs/file.c
fs/cifs/misc.c

index ef5709b250e68ef8e3fa3853483e21444b1f275b..539475a11c45e91be6dae502eccd46c2dfde643f 100644 (file)
@@ -670,7 +670,7 @@ require use of the stronger protocol */
  *  GlobalMid_Lock protects:
  *     list operations on pending_mid_q and oplockQ
  *      updates to XID counters, multiplex id  and SMB sequence numbers
- *  GlobalSMBSesLock protects:
+ *  cifs_file_list_lock protects:
  *     list operations on tcp and SMB session lists and tCon lists
  *  f_owner.lock protects certain per file struct operations
  *  mapping->page_lock protects certain per page operations
index ad47820655d9e2c05d2382621672a8b714e16338..d7c212a3838664198a8014822bbf6d09cb2a9cb2 100644 (file)
@@ -2291,7 +2291,7 @@ void cifs_oplock_break(struct work_struct *work)
        /*
         * We might have kicked in before is_valid_oplock_break()
         * finished grabbing reference for us.  Make sure it's done by
-        * waiting for GlobalSMSSeslock.
+        * waiting for cifs_file_list_lock.
         */
        spin_lock(&cifs_file_list_lock);
        spin_unlock(&cifs_file_list_lock);
index 1c681f6a68039ce14f2ac832c90eb17226198247..c4e296fe351876252a48210f81f6cbae165562f8 100644 (file)
@@ -577,7 +577,7 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv)
                                 * cifs_oplock_break_put() can't be called
                                 * from here.  Get reference after queueing
                                 * succeeded.  cifs_oplock_break() will
-                                * synchronize using GlobalSMSSeslock.
+                                * synchronize using cifs_file_list_lock.
                                 */
                                if (queue_work(system_nrt_wq,
                                               &netfile->oplock_break))