aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2015-02-23 05:24:11 -0500
committerDave Chinner <david@fromorbit.com>2015-02-23 05:24:11 -0500
commit0bd5ddedccca4451ac2390d1155b4ab74b990eff (patch)
tree2ce9d784ac9ccb57f99f03b2394f4b438a937830 /fs/xfs/xfs_mount.h
parentbab98bbe6e1e38bf2fa5018a195608553095f51b (diff)
xfs: replace xfs_mod_incore_sb_batched
Introduce helper functions for modifying fields in the superblock into xfs_trans.c, the only caller of xfs_mod_incore_sb_batch(). We can then use these directly in xfs_trans_unreserve_and_mod_sb() and so remove another user of the xfs_mode_incore_sb() API without losing any functionality or scalability of the transaction commit code.. Based on a patch from Christoph Hellwig. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r--fs/xfs/xfs_mount.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h
index d65e0f23b847..1c11512bab83 100644
--- a/fs/xfs/xfs_mount.h
+++ b/fs/xfs/xfs_mount.h
@@ -260,15 +260,6 @@ xfs_daddr_to_agbno(struct xfs_mount *mp, xfs_daddr_t d)
260} 260}
261 261
262/* 262/*
263 * This structure is for use by the xfs_mod_incore_sb_batch() routine.
264 * xfs_growfs can specify a few fields which are more than int limit
265 */
266typedef struct xfs_mod_sb {
267 xfs_sb_field_t msb_field; /* Field to modify, see below */
268 int64_t msb_delta; /* Change to make to specified field */
269} xfs_mod_sb_t;
270
271/*
272 * Per-ag incore structure, copies of information in agf and agi, to improve the 263 * Per-ag incore structure, copies of information in agf and agi, to improve the
273 * performance of allocation group selection. 264 * performance of allocation group selection.
274 */ 265 */
@@ -325,8 +316,6 @@ extern int xfs_initialize_perag(xfs_mount_t *mp, xfs_agnumber_t agcount,
325 316
326extern void xfs_unmountfs(xfs_mount_t *); 317extern void xfs_unmountfs(xfs_mount_t *);
327extern int xfs_mod_incore_sb(xfs_mount_t *, xfs_sb_field_t, int64_t, int); 318extern int xfs_mod_incore_sb(xfs_mount_t *, xfs_sb_field_t, int64_t, int);
328extern int xfs_mod_incore_sb_batch(xfs_mount_t *, xfs_mod_sb_t *,
329 uint, int);
330extern int xfs_mod_icount(struct xfs_mount *mp, int64_t delta); 319extern int xfs_mod_icount(struct xfs_mount *mp, int64_t delta);
331extern int xfs_mod_ifree(struct xfs_mount *mp, int64_t delta); 320extern int xfs_mod_ifree(struct xfs_mount *mp, int64_t delta);
332extern int xfs_mod_fdblocks(struct xfs_mount *mp, int64_t delta, 321extern int xfs_mod_fdblocks(struct xfs_mount *mp, int64_t delta,