projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd9c154
)
locks: use assign_type()
author
Namhyung Kim
<namhyung@gmail.com>
Mon, 17 Jan 2011 06:45:59 +0000
(15:45 +0900)
committer
J. Bruce Fields
<bfields@redhat.com>
Mon, 7 Mar 2011 17:05:09 +0000
(12:05 -0500)
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/locks.c
patch
|
blob
|
history
diff --git
a/fs/locks.c
b/fs/locks.c
index 0f3998291f78e4fa08b5d3c102f6d8dcc120247a..2c2d3b804d62c0c8e3a059b024efff06d3c7412d 100644
(file)
--- a/
fs/locks.c
+++ b/
fs/locks.c
@@
-415,17
+415,7
@@
static int flock64_to_posix_lock(struct file *filp, struct file_lock *fl,
fl->fl_ops = NULL;
fl->fl_lmops = NULL;
- switch (l->l_type) {
- case F_RDLCK:
- case F_WRLCK:
- case F_UNLCK:
- fl->fl_type = l->l_type;
- break;
- default:
- return -EINVAL;
- }
-
- return (0);
+ return assign_type(fl, l->l_type);
}
#endif