Whamcloud - gitweb
LU-1720 kernel: Quota doesn't work over 4TB on single OST
authoryangsheng <ys@whamcloud.com>
Fri, 10 Aug 2012 13:07:29 +0000 (21:07 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Mon, 27 Aug 2012 21:07:58 +0000 (17:07 -0400)
Fix previous kernel update patch wrong update chunk.

Signed-off-by: yang sheng <ys@whamcloud.com>
Change-Id: Ice06fd70ad6f034dddb5aae5291c613e04b18d99
Reviewed-on: http://review.whamcloud.com/3599
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/kernel_patches/patches/quota-large-limits-rhel5.patch

index d53c809..e8f1a99 100644 (file)
@@ -1,3 +1,23 @@
+Index: linux-2.6.18-128.1.14/fs/dquot.c
+===================================================================
+--- linux-2.6.18-128.1.14.orig/fs/dquot.c      2009-06-19 12:33:10.000000000 -0600
++++ linux-2.6.18-128.1.14/fs/dquot.c   2009-06-19 12:35:20.000000000 -0600
+@@ -139,11 +139,11 @@
+       struct mem_dqinfo *dqi = &sb_dqopt(dquot->dq_sb)->info[dquot->dq_type];
+
+       if ((di->dqb_valid & QIF_BLIMITS &&
+-           (di->dqb_bhardlimit > DQI_MAXBLIMIT ||
+-            di->dqb_bsoftlimit > DQI_MAXBLIMIT)) ||
++           (di->dqb_bhardlimit > dqi->dqi_maxblimit ||
++            di->dqb_bsoftlimit > dqi->dqi_maxblimit)) ||
+           (di->dqb_valid & QIF_ILIMITS &&
+-           (di->dqb_ihardlimit > DQI_MAXILIMIT ||
+-            di->dqb_isoftlimit > DQI_MAXILIMIT)))
++           (di->dqb_ihardlimit > dqi->dqi_maxilimit ||
++            di->dqb_isoftlimit > dqi->dqi_maxilimit)))
+               return -ERANGE;
+
+       spin_lock(&dq_data_lock);
 Index: linux-2.6.18-128.1.14/fs/quota_v1.c
 ===================================================================
 --- linux-2.6.18-128.1.14.orig/fs/quota_v1.c   2009-06-19 12:33:10.000000000 -0600