projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gfs2: nfs lock support for gfs2
[powerpc.git]
/
fs
/
gfs2
/
ops_file.c
diff --git
a/fs/gfs2/ops_file.c
b/fs/gfs2/ops_file.c
index
48b248d
..
329c4dc
100644
(file)
--- a/
fs/gfs2/ops_file.c
+++ b/
fs/gfs2/ops_file.c
@@
-520,6
+520,11
@@
static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl)
}
}
+ if (cmd == F_CANCELLK) {
+ /* Hack: */
+ cmd = F_SETLK;
+ fl->fl_type = F_UNLCK;
+ }
if (IS_GETLK(cmd))
return gfs2_lm_plock_get(sdp, &name, file, fl);
else if (fl->fl_type == F_UNLCK)