]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.suse/quota-Remove-bogus-optimization-in-check_idq-an.patch
Imported linux-2.6.27.39 suse/xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.suse / quota-Remove-bogus-optimization-in-check_idq-an.patch
diff --git a/src/patches/suse-2.6.27.31/patches.suse/quota-Remove-bogus-optimization-in-check_idq-an.patch b/src/patches/suse-2.6.27.31/patches.suse/quota-Remove-bogus-optimization-in-check_idq-an.patch
deleted file mode 100644 (file)
index 4859c21..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-From: Jan Kara <jack@suse.cz>
-References: fate#302681
-Subject: [PATCH 03/28] quota: Remove bogus 'optimization' in check_idq() and check_bdq()
-Patch-mainline: 2.6.29?
-
-Checks like <= 0 for an unsigned type do not make much sence. The value
-could be only 0 and that does not happen often enough for the check
-to be worth it.
-
-Signed-off-by: Jan Kara <jack@suse.cz>
----
- fs/dquot.c |    4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/fs/dquot.c b/fs/dquot.c
-index 758bf4a..e95ad55 100644
---- a/fs/dquot.c
-+++ b/fs/dquot.c
-@@ -1041,7 +1041,7 @@ static inline char ignore_hardlimit(struct dquot *dquot)
- static int check_idq(struct dquot *dquot, qsize_t inodes, char *warntype)
- {
-       *warntype = QUOTA_NL_NOWARN;
--      if (inodes <= 0 || test_bit(DQ_FAKE_B, &dquot->dq_flags))
-+      if (test_bit(DQ_FAKE_B, &dquot->dq_flags))
-               return QUOTA_OK;
-       if (dquot->dq_dqb.dqb_ihardlimit &&
-@@ -1073,7 +1073,7 @@ static int check_idq(struct dquot *dquot, qsize_t inodes, char *warntype)
- static int check_bdq(struct dquot *dquot, qsize_t space, int prealloc, char *warntype)
- {
-       *warntype = QUOTA_NL_NOWARN;
--      if (space <= 0 || test_bit(DQ_FAKE_B, &dquot->dq_flags))
-+      if (test_bit(DQ_FAKE_B, &dquot->dq_flags))
-               return QUOTA_OK;
-       if (dquot->dq_dqb.dqb_bhardlimit &&
--- 
-1.5.2.4
-