xfs: calculate xfs_qm_write_sb_changes() space log reservation at mount time
authorJeff Liu <jeff.liu@oracle.com>
Mon, 28 Jan 2013 13:26:34 +0000 (21:26 +0800)
committerBen Myers <bpm@sgi.com>
Fri, 1 Feb 2013 20:42:32 +0000 (14:42 -0600)
commitf910a8c620e21fdb53384ad741ff9e4995cc6e67
tree402e2a42dc99b6bdac604e61c64ab7971ae19637
parentb0c10b983a3e5cc35f239999df1b8bad1ba5b8f6
xfs: calculate xfs_qm_write_sb_changes() space log reservation at mount time

For the transaction that write the incore superblock changes of quota flags
to disk, it would reserve the same log space to clear/reset quota flags
transaction, hence we can use XFS_TRANS_SBCHANGE_LOG_RES() for it as well.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
CC: Dave Chinner <david@fromorbit.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_qm.c