linux-stable/fs/xfs/quota
Christoph Hellwig 8f04c47aa9 xfs: split xfs_itruncate_finish
Split the guts of xfs_itruncate_finish that loop over the existing extents
and calls xfs_bunmapi on them into a new helper, xfs_itruncate_externs.
Make xfs_attr_inactive call it directly instead of xfs_itruncate_finish,
which allows to simplify the latter a lot, by only letting it deal with
the data fork.  As a result xfs_itruncate_finish is renamed to
xfs_itruncate_data to make its use case more obvious.

Also remove the sync parameter from xfs_itruncate_data, which has been
unessecary since the introduction of the busy extent list in 2002, and
completely dead code since 2003 when the XFS_BMAPI_ASYNC parameter was
made a no-op.

I can't actually see why the xfs_attr_inactive needs to set the transaction
sync, but let's keep this patch simple and without changes in behaviour.

Also avoid passing a useless argument to xfs_isize_check, and make it
private to xfs_inode.c.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
2011-07-08 14:34:34 +02:00
..
xfs_dquot.c Fix common misspellings 2011-03-31 11:26:23 -03:00
xfs_dquot.h xfs: remove xfs_dqmarker 2010-05-19 09:58:11 -05:00
xfs_dquot_item.c xfs: convert xfs_fs_cmn_err to new error logging API 2011-03-07 10:05:35 +11:00
xfs_dquot_item.h xfs: Don't issue buffer IO direct from AIL push V2 2010-02-02 10:13:42 +11:00
xfs_qm.c vmscan: change shrinker API by passing shrink_control struct 2011-05-25 08:39:26 -07:00
xfs_qm.h xfs: fix variable set but not used warnings 2011-04-08 08:09:12 -05:00
xfs_qm_bhv.c Fix common misspellings 2011-03-31 11:26:23 -03:00
xfs_qm_stats.c xfs: remove unneeded #include statements 2010-07-26 13:16:33 -05:00
xfs_qm_stats.h [XFS] Replace __inline with inline 2008-04-18 11:51:15 +10:00
xfs_qm_syscalls.c xfs: split xfs_itruncate_finish 2011-07-08 14:34:34 +02:00
xfs_quota_priv.h xfs: remove a few macro indirections in the quota code 2010-05-19 09:58:15 -05:00
xfs_trans_dquot.c xfs: Convert remaining cmn_err() callers to new API 2011-03-07 10:08:35 +11:00