Commit c47b7971 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Quota write transaction size fix

From: Jan Kara <jack@suse.cz>

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).
parent 281df9b3
...@@ -1988,8 +1988,10 @@ int ext3_statfs (struct super_block * sb, struct statfs * buf) ...@@ -1988,8 +1988,10 @@ int ext3_statfs (struct super_block * sb, struct statfs * buf)
#ifdef CONFIG_QUOTA #ifdef CONFIG_QUOTA
#define EXT3_OLD_QFMT_BLOCKS 2 /* Blocks: (2 data blocks) * (3 indirect + 1 descriptor + 1 bitmap) + superblock */
#define EXT3_V0_QFMT_BLOCKS 6 #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); static int (*old_sync_dquot)(struct dquot *dquot);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment