projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b540d0
)
switch o2hb_region_dev_write() to fget_light()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 27 Aug 2012 21:55:17 +0000
(17:55 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 01:10:26 +0000
(21:10 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/cluster/heartbeat.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/cluster/heartbeat.c
b/fs/ocfs2/cluster/heartbeat.c
index a4e855e3690e6ab844d37788b71649975321cb19..61c28ae266f5f6a9c3b2fecf898b2d79a9a1cae6 100644
(file)
--- a/
fs/ocfs2/cluster/heartbeat.c
+++ b/
fs/ocfs2/cluster/heartbeat.c
@@
-1750,6
+1750,7
@@
static ssize_t o2hb_region_dev_write(struct o2hb_region *reg,
struct inode *inode = NULL;
ssize_t ret = -EINVAL;
int live_threshold;
+ int fput_needed;
if (reg->hr_bdev)
goto out;
@@
-1766,7
+1767,7
@@
static ssize_t o2hb_region_dev_write(struct o2hb_region *reg,
if (fd < 0 || fd >= INT_MAX)
goto out;
- filp = fget
(f
d);
+ filp = fget
_light(fd, &fput_neede
d);
if (filp == NULL)
goto out;
@@
-1884,7
+1885,7
@@
static ssize_t o2hb_region_dev_write(struct o2hb_region *reg,
out:
if (filp)
- fput
(filp
);
+ fput
_light(filp, fput_needed
);
if (inode)
iput(inode);
if (ret < 0) {