xfs: Use delay write promotion for dquot flushing
commit7d6a7bde52e449f21a0e86a7a4955b4e08a49d69
authorDave Chinner <david@fromorbit.com>
Tue, 26 Jan 2010 04:13:41 +0000 (26 15:13 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 26 Jan 2010 04:13:41 +0000 (26 15:13 +1100)
treeb658055f660f7c825298cc2a88b3246e78fb1bce
parent089716aa1480b7197bcd678b8477774c379a2768
xfs: Use delay write promotion for dquot flushing

xfs_qm_dqflock_pushbuf_wait() does a very similar trick to item
pushing used to do to flush out delayed write dquot buffers. Change
it to use the new promotion method rather than an async flush.

Also, xfs_qm_dqflock_pushbuf_wait() can return without the flush lock
held, yet the callers make the assumption that after this call the
flush lock is held. Always return with the flush lock held.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/quota/xfs_dquot.c