Home Home > GIT Browse > vanilla
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.de>2010-04-09 12:24:53 -0400
committerJeff Mahoney <jeffm@suse.de>2010-04-09 12:24:53 -0400
commite4bf6a66d42c08252fbe79a3b9b6bef559be0712 (patch)
treeaedc447b47e18451c9f4fc7705c6f92ca89e0ec3
parent8a39231154dc83e9590d48e87f085a6983d49250 (diff)
- patches.fixes/reiserfs-remove-2-tb-file-size-limit: Fix issue onrpm-2.6.34-3
32-bit systems. suse-commit: 7621175843901a97be5a91e05255ede5b66051bb
-rw-r--r--fs/reiserfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index 816df052f0ff..96a7ba108faa 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -1313,7 +1313,7 @@ static inline loff_t
reiserfs_max_file_offset(struct super_block *sb)
{
/* Limited by stat_data->sd_blocks, 2^32-1 blocks */
- loff_t fs_max = (sb->s_blocksize << 32) - sb->s_blocksize;
+ loff_t fs_max = ((u64)sb->s_blocksize << 32) - sb->s_blocksize;
/* Limited by 32-bit MAX_LFS_FILESIZE */
loff_t page_cache_max = (((u64)PAGE_CACHE_SIZE << 31)-1);