diff options
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index d760934109b5..187e14b696c2 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -556,10 +556,10 @@ xfs_max_file_offset( | |||
556 | /* Figure out maximum filesize, on Linux this can depend on | 556 | /* Figure out maximum filesize, on Linux this can depend on |
557 | * the filesystem blocksize (on 32 bit platforms). | 557 | * the filesystem blocksize (on 32 bit platforms). |
558 | * __block_write_begin does this in an [unsigned] long... | 558 | * __block_write_begin does this in an [unsigned] long... |
559 | * page->index << (PAGE_CACHE_SHIFT - bbits) | 559 | * page->index << (PAGE_SHIFT - bbits) |
560 | * So, for page sized blocks (4K on 32 bit platforms), | 560 | * So, for page sized blocks (4K on 32 bit platforms), |
561 | * this wraps at around 8Tb (hence MAX_LFS_FILESIZE which is | 561 | * this wraps at around 8Tb (hence MAX_LFS_FILESIZE which is |
562 | * (((u64)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1) | 562 | * (((u64)PAGE_SIZE << (BITS_PER_LONG-1))-1) |
563 | * but for smaller blocksizes it is less (bbits = log2 bsize). | 563 | * but for smaller blocksizes it is less (bbits = log2 bsize). |
564 | * Note1: get_block_t takes a long (implicit cast from above) | 564 | * Note1: get_block_t takes a long (implicit cast from above) |
565 | * Note2: The Large Block Device (LBD and HAVE_SECTOR_T) patch | 565 | * Note2: The Large Block Device (LBD and HAVE_SECTOR_T) patch |
@@ -570,10 +570,10 @@ xfs_max_file_offset( | |||
570 | #if BITS_PER_LONG == 32 | 570 | #if BITS_PER_LONG == 32 |
571 | # if defined(CONFIG_LBDAF) | 571 | # if defined(CONFIG_LBDAF) |
572 | ASSERT(sizeof(sector_t) == 8); | 572 | ASSERT(sizeof(sector_t) == 8); |
573 | pagefactor = PAGE_CACHE_SIZE; | 573 | pagefactor = PAGE_SIZE; |
574 | bitshift = BITS_PER_LONG; | 574 | bitshift = BITS_PER_LONG; |
575 | # else | 575 | # else |
576 | pagefactor = PAGE_CACHE_SIZE >> (PAGE_CACHE_SHIFT - blockshift); | 576 | pagefactor = PAGE_SIZE >> (PAGE_SHIFT - blockshift); |
577 | # endif | 577 | # endif |
578 | #endif | 578 | #endif |
579 | 579 | ||