ext4: fix data offset overflow on 32-bit archs in ext4_inline_data_fiemap()
authorJan Kara <jack@suse.cz>
Fri, 31 May 2013 23:33:42 +0000 (19:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 31 May 2013 23:33:42 +0000 (19:33 -0400)
commiteaf3793728d07d995f1e74250b2d0005f7ae98b5
tree5058a1f242caacba53cb52f539c16c8e12322497
parent566370a2e56837be98bc62d012fc2d2d11851db4
ext4: fix data offset overflow on 32-bit archs in ext4_inline_data_fiemap()

On 32-bit archs when sector_t is defined as 32-bit the logic computing
data offset in ext4_inline_data_fiemap(). Fix that by properly typing
the shifted value.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inline.c