projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeda7f6
)
nilfs2: add zero-fill for new btree node buffers
author
Ryusuke Konishi
<konishi.ryusuke@lab.ntt.co.jp>
Sun, 13 Sep 2009 16:20:35 +0000
(
01:20
+0900)
committer
Ryusuke Konishi
<konishi.ryusuke@lab.ntt.co.jp>
Tue, 3 Nov 2009 03:32:03 +0000
(12:32 +0900)
Adds missing initialization of newly allocated b-tree node buffers.
This avoids garbage data to be mixed in b-tree node blocks.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/btnode.c
patch
|
blob
|
history
diff --git
a/fs/nilfs2/btnode.c
b/fs/nilfs2/btnode.c
index 435864ce06be5ca076bf06fce5165e9b6b8dbc51..84c25382f8e3b35b13f6509463aef70308bb3164 100644
(file)
--- a/
fs/nilfs2/btnode.c
+++ b/
fs/nilfs2/btnode.c
@@
-87,6
+87,7
@@
int nilfs_btnode_submit_block(struct address_space *btnc, __u64 blocknr,
brelse(bh);
BUG();
}
+ memset(bh->b_data, 0, 1 << inode->i_blkbits);
bh->b_bdev = NILFS_I_NILFS(inode)->ns_bdev;
bh->b_blocknr = blocknr;
set_buffer_mapped(bh);