--------------------- PatchSet 795 Date: 2002/01/11 22:35:08 Author: sct Log: Allow filesystems to pass -EAGAIN back up to write_dquot if they want to defer the quota write for now. Members: fs/dquot.c:1.1->1.1.6.1 [quota-branch] --- linux-2.4.21-pre3-rmap-ext3merge/fs/dquot.c.=K0021=.orig 2003-01-23 16:30:32.000000000 +0000 +++ linux-2.4.21-pre3-rmap-ext3merge/fs/dquot.c 2003-01-23 16:32:22.000000000 +0000 @@ -287,10 +287,17 @@ if (filp) ret = filp->f_op->write(filp, (char *)&dqbuf, sizeof(struct dqblk), &offset); - if (ret != sizeof(struct dqblk)) - printk(KERN_WARNING "VFS: dquota write failed on dev %s\n", - kdevname(dquot->dq_dev)); - + if (ret != sizeof(struct dqblk)) { + switch (ret) { + case -EAGAIN: + dquot->dq_flags |= DQ_MOD; + break; + default: + printk(KERN_WARNING + "VFS: dquota write failed on dev %s\n", + kdevname(dquot->dq_dev)); + } + } set_fs(fs); up(sem); dqstats.writes++;