diff options
author | Jan Kara <jack@suse.cz> | 2013-01-28 13:06:48 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-01-28 13:06:48 -0500 |
commit | b6a8e62f8b0aec7607c947ba0d37d30fef65440f (patch) | |
tree | 8227ba01c4f38e032aeb1b8c3c4a45d9e171643a /mm/msync.c | |
parent | f8bec37037aceb126d695c021cf4dc93b7238d47 (diff) |
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 <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'mm/msync.c')
0 files changed, 0 insertions, 0 deletions