ext4: remove redundant set_buffer_mapped() in ext4_da_get_block_prep()
authorFeng Tang <feng.tang@intel.com>
Wed, 23 Mar 2011 18:05:03 +0000 (14:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 23 Mar 2011 18:05:03 +0000 (14:05 -0400)
The map_bh() call will have already set the buffer_head to mapped.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c

index f44307a211367942a46011b7b408e02a3c113672..dec10e2115e0849141f3e10bc51c29a5d412fc34 100644 (file)
@@ -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;
 }