Преглед изворни кода

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 <feng.tang@intel.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Feng Tang пре 14 година
родитељ
комит
6de9843dab
1 измењених фајлова са 0 додато и 1 уклоњено
  1. 0 1
      fs/ext4/inode.c

+ 0 - 1
fs/ext4/inode.c

@@ -2502,7 +2502,6 @@ static int ext4_da_get_block_prep(struct inode *inode, sector_t iblock,
 		 * for partial write.
 		 * for partial write.
 		 */
 		 */
 		set_buffer_new(bh);
 		set_buffer_new(bh);
-		set_buffer_mapped(bh);
 	}
 	}
 	return 0;
 	return 0;
 }
 }