diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-30 16:56:53 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:57 -0400 |
commit | 35ebb934bd7fcc7ca991b155b7980c3c4ff9f1a5 (patch) | |
tree | ce2980aac2b06a75b18b0c523aa0d859f09c8fad /fs/btrfs/file.c | |
parent | 2ff3e9b61d02b03e3157f7d43ba20ee1452814de (diff) |
Btrfs: Fix PAGE_CACHE_SHIFT shifts on 32 bit machines
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 843e920388e..abdd9caad94 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -301,7 +301,8 @@ static int dirty_and_release_pages(struct btrfs_trans_handle *trans, | |||
301 | SetPageUptodate(p); | 301 | SetPageUptodate(p); |
302 | set_page_dirty(p); | 302 | set_page_dirty(p); |
303 | } | 303 | } |
304 | last_end = pages[num_pages -1]->index << PAGE_CACHE_SHIFT; | 304 | last_end = (u64)(pages[num_pages -1]->index) << |
305 | PAGE_CACHE_SHIFT; | ||
305 | last_end += PAGE_CACHE_SIZE - 1; | 306 | last_end += PAGE_CACHE_SIZE - 1; |
306 | set_extent_delalloc(em_tree, start_pos, end_of_last_block, | 307 | set_extent_delalloc(em_tree, start_pos, end_of_last_block, |
307 | GFP_NOFS); | 308 | GFP_NOFS); |