From: Feng Tang Date: Wed, 23 Mar 2011 18:05:03 +0000 (-0400) Subject: ext4: remove redundant set_buffer_mapped() in ext4_da_get_block_prep() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6de9843dab3f;p=linux-beck.git ext4: remove redundant set_buffer_mapped() in ext4_da_get_block_prep() The map_bh() call will have already set the buffer_head to mapped. Signed-off-by: Feng Tang Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index f44307a21136..dec10e2115e0 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -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; }