Skip to content

Commit

Permalink
ext4: remove redundant set_buffer_mapped() in ext4_da_get_block_prep()
Browse files Browse the repository at this point in the history
The map_bh() call will have already set the buffer_head to mapped.

Signed-off-by: Feng Tang <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
  • Loading branch information
ftang1 authored and tytso committed Mar 23, 2011
1 parent 0562e0b commit 6de9843
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2502,7 +2502,6 @@ static int ext4_da_get_block_prep(struct inode *inode, sector_t iblock,
* for partial write.
*/
set_buffer_new(bh);
set_buffer_mapped(bh);
}
return 0;
}
Expand Down

0 comments on commit 6de9843

Please sign in to comment.