diff options
| author | Jan Kara <[email protected]> | 2013-01-28 18:06:48 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2013-01-28 18:06:48 +0000 |
| commit | b6a8e62f8b0aec7607c947ba0d37d30fef65440f (patch) | |
| tree | 8227ba01c4f38e032aeb1b8c3c4a45d9e171643a /fs/jbd2/commit.c | |
| parent | ext4: dirty page has always buffers attached (diff) | |
| download | kernel-b6a8e62f8b0aec7607c947ba0d37d30fef65440f.tar.gz kernel-b6a8e62f8b0aec7607c947ba0d37d30fef65440f.zip | |
ext4: simplify mpage_add_bh_to_extent()
The argument b_size of mpage_add_bh_to_extent() was bogus since it was
always == blocksize (which we can easily derive from inode->i_blkbits).
Also second branch of condition:
if (nrblocks >= EXT4_MAX_TRANS_DATA) {
} else if ((nrblocks + (b_size >> mpd->inode->i_blkbits)) >
EXT4_MAX_TRANS_DATA) {
}
was never taken because (b_size >> mpd->inode->i_blkbits) == 1.
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
