[PATCH] Quota write transaction size fix

Jan Kara (jack@suse.cz)
Wed, 7 May 2003 18:14:51 +0200


Hello Linus,

I'm sending a patch which changes numbers of blocks reserved for quota
writes to more appropriate values (with current values ext3 asserts can
be triggered). Please apply.

Honza

diff -ruNX /home/jack/.kerndiffexclude linux-2.5.68/fs/ext3/super.c linux-2.5.68-1-ext3dfix/fs/ext3/super.c
--- linux-2.5.68/fs/ext3/super.c Sun May 4 12:32:24 2003
+++ linux-2.5.68-1-ext3dfix/fs/ext3/super.c Sun May 4 12:49:38 2003
@@ -1992,8 +1992,10 @@

#ifdef CONFIG_QUOTA

-#define EXT3_OLD_QFMT_BLOCKS 2
-#define EXT3_V0_QFMT_BLOCKS 6
+/* Blocks: (2 data blocks) * (3 indirect + 1 descriptor + 1 bitmap) + superblock */
+#define EXT3_OLD_QFMT_BLOCKS 11
+/* Blocks: quota info + (4 pointer blocks + 1 entry block) * (3 indirect + 1 descriptor + 1 bitmap) + superblock */
+#define EXT3_V0_QFMT_BLOCKS 27

static int (*old_sync_dquot)(struct dquot *dquot);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/