Skip to contentSkip to conversation

nfs: remove an obsolete nfs_flock comment

PATCH New J. Bruce Fields 1 participant 1 message Aug 14, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs: remove an obsolete nfs_flock comment

From: J. Bruce Fields <[email protected]>

We *do* now allow bsd flocks over nfs.

---
 fs/nfs/file.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
fs/nfs/file.c +0 -7
index 7846065..6061617 100644
@@ -699,13 +699,6 @@ static int nfs_flock(struct file *filp, int cmd, struct file_lock *fl)
 			filp->f_path.dentry->d_name.name,
 			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))
 		return -ENOLCK;
 
Signature · 1 line
1.5.5.rc1