projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ada5082
)
ocfs2: release the buffer head in ocfs2_do_truncate.
author
Tao Ma
<tao.ma@oracle.com>
Wed, 12 Aug 2009 06:42:47 +0000
(14:42 +0800)
committer
Joel Becker
<joel.becker@oracle.com>
Mon, 17 Aug 2009 19:50:35 +0000
(12:50 -0700)
In ocfs2_do_truncate, we forget to release last_eb_bh which
will cause memleak. So call brelse in the end.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/alloc.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/alloc.c
b/fs/ocfs2/alloc.c
index
f9a3e89
..
ab513dd
100644
(file)
--- a/
fs/ocfs2/alloc.c
+++ b/
fs/ocfs2/alloc.c
@@
-6851,7
+6851,7
@@
static int ocfs2_do_truncate(struct ocfs2_super *osb,
}
status = 0;
bail:
-
+ brelse(last_eb_bh);
mlog_exit(status);
return status;
}