projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6114437
)
switch readahead(2) to fget_light()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 27 Aug 2012 00:30:57 +0000
(20:30 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:10:04 +0000
(21:10 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/readahead.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/readahead.c
b/mm/readahead.c
index ea8f8fa21649d7069543e19e0e48ae38d63c175e..1011111e2bf433880421592e5d17655122c44417 100644
(file)
--- a/
mm/readahead.c
+++ b/
mm/readahead.c
@@
-580,9
+580,10
@@
SYSCALL_DEFINE(readahead)(int fd, loff_t offset, size_t count)
{
ssize_t ret;
struct file *file;
+ int fput_needed;
ret = -EBADF;
- file = fget
(f
d);
+ file = fget
_light(fd, &fput_neede
d);
if (file) {
if (file->f_mode & FMODE_READ) {
struct address_space *mapping = file->f_mapping;
@@
-591,7
+592,7
@@
SYSCALL_DEFINE(readahead)(int fd, loff_t offset, size_t count)
unsigned long len = end - start + 1;
ret = do_readahead(mapping, file, start, len);
}
- fput
(file
);
+ fput
_light(file, fput_needed
);
}
return ret;
}