projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
442a9ff
)
switch do_fsync() to fget_light()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 20 Apr 2012 03:52:50 +0000
(23:52 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 30 May 2012 03:28:29 +0000
(23:28 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/sync.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/sync.c
b/fs/sync.c
index 0e8db939d96f8fdaa072df7e6fcadb15a5781a84..11e3d1c449018dcf9a95c352746f46d6522c4cb2 100644
(file)
--- a/
fs/sync.c
+++ b/
fs/sync.c
@@
-188,11
+188,12
@@
static int do_fsync(unsigned int fd, int datasync)
{
struct file *file;
int ret = -EBADF;
+ int fput_needed;
- file = fget
(f
d);
+ file = fget
_light(fd, &fput_neede
d);
if (file) {
ret = vfs_fsync(file, datasync);
- fput
(file
);
+ fput
_light(file, fput_needed
);
}
return ret;
}