--------------------- 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-quota/fs/dquot.c.=K0003=.orig Wed Sep 4 23:14:59 2002 +++ linux-2.4-quota/fs/dquot.c Wed Sep 11 18:13:37 2002 @@ -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++;