diff options
author | Dave Chinner <dchinner@redhat.com> | 2015-02-23 05:24:11 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-02-23 05:24:11 -0500 |
commit | 0bd5ddedccca4451ac2390d1155b4ab74b990eff (patch) | |
tree | 2ce9d784ac9ccb57f99f03b2394f4b438a937830 /fs/xfs/xfs_mount.h | |
parent | bab98bbe6e1e38bf2fa5018a195608553095f51b (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.h | 11 |
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 | */ | ||
266 | typedef 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 | ||
326 | extern void xfs_unmountfs(xfs_mount_t *); | 317 | extern void xfs_unmountfs(xfs_mount_t *); |
327 | extern int xfs_mod_incore_sb(xfs_mount_t *, xfs_sb_field_t, int64_t, int); | 318 | extern int xfs_mod_incore_sb(xfs_mount_t *, xfs_sb_field_t, int64_t, int); |
328 | extern int xfs_mod_incore_sb_batch(xfs_mount_t *, xfs_mod_sb_t *, | ||
329 | uint, int); | ||
330 | extern int xfs_mod_icount(struct xfs_mount *mp, int64_t delta); | 319 | extern int xfs_mod_icount(struct xfs_mount *mp, int64_t delta); |
331 | extern int xfs_mod_ifree(struct xfs_mount *mp, int64_t delta); | 320 | extern int xfs_mod_ifree(struct xfs_mount *mp, int64_t delta); |
332 | extern int xfs_mod_fdblocks(struct xfs_mount *mp, int64_t delta, | 321 | extern int xfs_mod_fdblocks(struct xfs_mount *mp, int64_t delta, |