aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/extents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 214e68a5e79f..299ee9df546f 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -4679,7 +4679,7 @@ static int ext4_xattr_fiemap(struct inode *inode,
4679 error = ext4_get_inode_loc(inode, &iloc); 4679 error = ext4_get_inode_loc(inode, &iloc);
4680 if (error) 4680 if (error)
4681 return error; 4681 return error;
4682 physical = iloc.bh->b_blocknr << blockbits; 4682 physical = (__u64)iloc.bh->b_blocknr << blockbits;
4683 offset = EXT4_GOOD_OLD_INODE_SIZE + 4683 offset = EXT4_GOOD_OLD_INODE_SIZE +
4684 EXT4_I(inode)->i_extra_isize; 4684 EXT4_I(inode)->i_extra_isize;
4685 physical += offset; 4685 physical += offset;
@@ -4687,7 +4687,7 @@ static int ext4_xattr_fiemap(struct inode *inode,
4687 flags |= FIEMAP_EXTENT_DATA_INLINE; 4687 flags |= FIEMAP_EXTENT_DATA_INLINE;
4688 brelse(iloc.bh); 4688 brelse(iloc.bh);
4689 } else { /* external block */ 4689 } else { /* external block */
4690 physical = EXT4_I(inode)->i_file_acl << blockbits; 4690 physical = (__u64)EXT4_I(inode)->i_file_acl << blockbits;
4691 length = inode->i_sb->s_blocksize; 4691 length = inode->i_sb->s_blocksize;
4692 } 4692 }
4693 4693