Btrfs: Fix PAGE_CACHE_SHIFT shifts on 32 bit machines

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason
2007-10-30 16:56:53 -04:00
parent 2ff3e9b61d
commit 35ebb934bd
5 changed files with 26 additions and 22 deletions

View File

@@ -301,7 +301,8 @@ static int dirty_and_release_pages(struct btrfs_trans_handle *trans,
SetPageUptodate(p);
set_page_dirty(p);
}
last_end = pages[num_pages -1]->index << PAGE_CACHE_SHIFT;
last_end = (u64)(pages[num_pages -1]->index) <<
PAGE_CACHE_SHIFT;
last_end += PAGE_CACHE_SIZE - 1;
set_extent_delalloc(em_tree, start_pos, end_of_last_block,
GFP_NOFS);