]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: cast bio->bi_sector to a u64 before shifting
authorChris Mason <chris.mason@oracle.com>
Fri, 3 Oct 2008 20:31:08 +0000 (16:31 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 3 Oct 2008 20:31:08 +0000 (16:31 -0400)
commite5ecf7473912f70b05280946492a938daba49456
treec26ebe1ccf229f829513e1fc85c8110928187e13
parent7079b813dd1f7c91411df825a3df323e5ee86c2d
Btrfs: cast bio->bi_sector to a u64 before shifting

On 32 bit machines without CONFIG_LBD, the bi_sector field is only 32 bits.
Btrfs needs to cast it before shifting up, or we end up doing IO into
the wrong place.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
fs/btrfs/volumes.c