projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf2965d
)
switch fallocate(2) to fget_light()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 27 Aug 2012 00:15:40 +0000
(20:15 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:10:03 +0000
(21:10 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/open.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/open.c
b/fs/open.c
index 9f61d7269d39ff6e5bf67450aea4940405ef0aad..da6d3f1ac243d8f93f114224876b36fcbc310557 100644
(file)
--- a/
fs/open.c
+++ b/
fs/open.c
@@
-277,12
+277,12
@@
int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
SYSCALL_DEFINE(fallocate)(int fd, int mode, loff_t offset, loff_t len)
{
struct file *file;
- int error = -EBADF;
+ int error = -EBADF
, fput_needed
;
- file = fget
(f
d);
+ file = fget
_light(fd, &fput_neede
d);
if (file) {
error = do_fallocate(file, mode, offset, len);
- fput
(file
);
+ fput
_light(file, fput_needed
);
}
return error;