From 2ecf81c4648618cad426b34cb9e63bdde3c774e5 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Tue, 21 Jul 2009 19:42:03 -0400 Subject: [PATCH] --- yaml --- r: 155739 b: refs/heads/master c: 03aa3a49ad3592a9e4e1ab19c6da3e852288caf1 h: refs/heads/master i: 155737: 15346ffbef2e3c5e77537a1f5382e98211a21a73 155735: 4055f97c8b10ec588f6de91b8df3994ecdb154fd v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index e6bfdc01faf8..e1636f074227 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ce6e7fcd43aab1f77e56aa36936dd7d2d05a1ffa +refs/heads/master: 03aa3a49ad3592a9e4e1ab19c6da3e852288caf1 diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index 9bb5c8750736..fc44d316d0bb 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/fs/cifs/connect.c @@ -2452,10 +2452,10 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, tcon->local_lease = volume_info->local_lease; } if (pSesInfo) { - if (pSesInfo->capabilities & CAP_LARGE_FILES) { - sb->s_maxbytes = (u64) 1 << 63; - } else - sb->s_maxbytes = (u64) 1 << 31; /* 2 GB */ + if (pSesInfo->capabilities & CAP_LARGE_FILES) + sb->s_maxbytes = MAX_LFS_FILESIZE; + else + sb->s_maxbytes = MAX_NON_LFS; } /* BB FIXME fix time_gran to be larger for LANMAN sessions */