diff options
author | Dave Chinner <dchinner@redhat.com> | 2015-02-23 21:22:54 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-02-23 21:22:54 +1100 |
commit | bab98bbe6e1e38bf2fa5018a195608553095f51b (patch) | |
tree | 7d22e47227132f29ad6f9d7e116d1e4eabfca04f /fs/xfs/xfs_mount.h | |
parent | 5681ca40064fdb3efe477a604d690ab0425708b3 (diff) | |
download | linux-bab98bbe6e1e38bf2fa5018a195608553095f51b.tar.gz linux-bab98bbe6e1e38bf2fa5018a195608553095f51b.tar.bz2 linux-bab98bbe6e1e38bf2fa5018a195608553095f51b.zip |
xfs: introduce xfs_mod_frextents
Add a new helper to modify the incore counter of free realtime
extents. This matches the helpers used for inode and data block
counters, and removes a significant users of the xfs_mod_incore_sb()
interface.
Based on a patch originally 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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h index 205f23a240a7..d65e0f23b847 100644 --- a/fs/xfs/xfs_mount.h +++ b/fs/xfs/xfs_mount.h @@ -331,6 +331,8 @@ extern int xfs_mod_icount(struct xfs_mount *mp, int64_t delta); extern int xfs_mod_ifree(struct xfs_mount *mp, int64_t delta); extern int xfs_mod_fdblocks(struct xfs_mount *mp, int64_t delta, bool reserved); +extern int xfs_mod_frextents(struct xfs_mount *mp, int64_t delta); + extern int xfs_mount_log_sb(xfs_mount_t *); extern struct xfs_buf *xfs_getsb(xfs_mount_t *, int); extern int xfs_readsb(xfs_mount_t *, int); |