浏览代码

nfs: remove an obsolete nfs_flock comment

We *do* now allow bsd flocks over nfs.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
J. Bruce Fields 16 年之前
父节点
当前提交
f200c11c25
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      fs/nfs/file.c

+ 0 - 7
fs/nfs/file.c

@@ -702,13 +702,6 @@ static int nfs_flock(struct file *filp, int cmd, struct file_lock *fl)
 			filp->f_path.dentry->d_name.name,
 			filp->f_path.dentry->d_name.name,
 			fl->fl_type, fl->fl_flags);
 			fl->fl_type, fl->fl_flags);
 
 
-	/*
-	 * No BSD flocks over NFS allowed.
-	 * Note: we could try to fake a POSIX lock request here by
-	 * using ((u32) filp | 0x80000000) or some such as the pid.
-	 * Not sure whether that would be unique, though, or whether
-	 * that would break in other places.
-	 */
 	if (!(fl->fl_flags & FL_FLOCK))
 	if (!(fl->fl_flags & FL_FLOCK))
 		return -ENOLCK;
 		return -ENOLCK;