btrfs: use SECTOR_SHIFT to convert physical offset to LBA
[linux-2.6-microblaze.git] / fs / btrfs / compression.c
index 2d0493f..14f5f25 100644 (file)
@@ -421,7 +421,7 @@ static noinline int add_ra_bio_pages(struct inode *inode,
                 */
                if (!em || cur < em->start ||
                    (cur + fs_info->sectorsize > extent_map_end(em)) ||
-                   (em->block_start >> 9) != orig_bio->bi_iter.bi_sector) {
+                   (em->block_start >> SECTOR_SHIFT) != orig_bio->bi_iter.bi_sector) {
                        free_extent_map(em);
                        unlock_extent(tree, cur, page_end, NULL);
                        unlock_page(page);