projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ecaef0
)
ext4: remove duplicate call to ext4_bread() in ext4_init_new_dir()
author
Guo Chao
<yan@linux.vnet.ibm.com>
Mon, 7 Jan 2013 04:40:25 +0000
(23:40 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 7 Jan 2013 04:40:25 +0000
(23:40 -0500)
This fixes a buffer cache leak when creating a directory, introduced
in commit
a774f9c20
.
Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Tao Ma <boyu.mt@taobao.com>
fs/ext4/namei.c
patch
|
blob
|
history
diff --git
a/fs/ext4/namei.c
b/fs/ext4/namei.c
index
f8be1c2
..
f9ed946
100644
(file)
--- a/
fs/ext4/namei.c
+++ b/
fs/ext4/namei.c
@@
-2368,7
+2368,6
@@
static int ext4_init_new_dir(handle_t *handle, struct inode *dir,
}
inode->i_size = EXT4_I(inode)->i_disksize = blocksize;
- dir_block = ext4_bread(handle, inode, 0, 1, &err);
if (!(dir_block = ext4_bread(handle, inode, 0, 1, &err))) {
if (!err) {
err = -EIO;