Loading fs/ext2/inode.c +3 −6 Original line number Original line Diff line number Diff line Loading @@ -732,16 +732,13 @@ static int ext2_get_blocks(struct inode *inode, } } if (IS_DAX(inode)) { if (IS_DAX(inode)) { int i; /* /* * We must unmap blocks before zeroing so that writeback cannot * We must unmap blocks before zeroing so that writeback cannot * overwrite zeros with stale data from block device page cache. * overwrite zeros with stale data from block device page cache. */ */ for (i = 0; i < count; i++) { clean_bdev_aliases(inode->i_sb->s_bdev, unmap_underlying_metadata(inode->i_sb->s_bdev, le32_to_cpu(chain[depth-1].key), le32_to_cpu(chain[depth-1].key) + i); count); } /* /* * block must be initialised before we put it in the tree * block must be initialised before we put it in the tree * so that it's not found by another thread before it's * so that it's not found by another thread before it's Loading Loading
fs/ext2/inode.c +3 −6 Original line number Original line Diff line number Diff line Loading @@ -732,16 +732,13 @@ static int ext2_get_blocks(struct inode *inode, } } if (IS_DAX(inode)) { if (IS_DAX(inode)) { int i; /* /* * We must unmap blocks before zeroing so that writeback cannot * We must unmap blocks before zeroing so that writeback cannot * overwrite zeros with stale data from block device page cache. * overwrite zeros with stale data from block device page cache. */ */ for (i = 0; i < count; i++) { clean_bdev_aliases(inode->i_sb->s_bdev, unmap_underlying_metadata(inode->i_sb->s_bdev, le32_to_cpu(chain[depth-1].key), le32_to_cpu(chain[depth-1].key) + i); count); } /* /* * block must be initialised before we put it in the tree * block must be initialised before we put it in the tree * so that it's not found by another thread before it's * so that it's not found by another thread before it's Loading