]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/cifs/cifsfs.c
fs/locks.c: prepare for BKL removal
[mirror_ubuntu-artful-kernel.git] / fs / cifs / cifsfs.c
index 4e273f7793f68df6af14f15b45181deb0d68aa0f..50208c15309a7321b15e0d0adc417c34e1994143 100644 (file)
@@ -562,8 +562,8 @@ static loff_t cifs_llseek(struct file *file, loff_t offset, int origin)
 
 static int cifs_setlease(struct file *file, long arg, struct file_lock **lease)
 {
-       /* note that this is called by vfs setlease with the BKL held
-          although I doubt that BKL is needed here in cifs */
+       /* note that this is called by vfs setlease with lock_flocks held
+          to protect *lease from going away */
        struct inode *inode = file->f_path.dentry->d_inode;
 
        if (!(S_ISREG(inode->i_mode)))