From 4991cc3d3d52059108b5d6be4672b059da9d406f Mon Sep 17 00:00:00 2001 From: yangsheng Date: Mon, 8 Oct 2012 12:25:10 +0800 Subject: [PATCH] LU-1720 kernel: Quota doesn't work over 4TB on single OST Fix previous kernel update patch wrong update chunk. Signed-off-by: yang sheng Change-Id: I3253469dd285e094f339a17e73c406b008a66195 Reviewed-on: http://review.whamcloud.com/3600 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Niu Yawei Reviewed-by: Johann Lombardi --- .../patches/quota-large-limits-rhel5.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lustre/kernel_patches/patches/quota-large-limits-rhel5.patch b/lustre/kernel_patches/patches/quota-large-limits-rhel5.patch index 67ca0f7..e4a954e 100644 --- a/lustre/kernel_patches/patches/quota-large-limits-rhel5.patch +++ b/lustre/kernel_patches/patches/quota-large-limits-rhel5.patch @@ -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.6/fs/quota_v1.c =================================================================== --- linux-2.6.18-128.1.6.orig/fs/quota_v1.c 2006-09-19 21:42:06.000000000 -0600 -- 1.8.3.1