diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-12-12 11:46:23 -0500 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-12-12 11:47:16 -0500 |
commit | 66e3237e724c6650dca03627b40bb00a812d3f7a (patch) | |
tree | 84a31606547b538fb2e8fb4dd5b732f0444c53fb /fs/xfs/libxfs/xfs_bmap.c | |
parent | 02b100fb83f9b0f8719deef6c4ed973b4d9ce00c (diff) |
xfs: const-ify xfs_owner_info arguments
Only certain functions actually change the contents of an
xfs_owner_info; the rest can accept a const struct pointer. This will
enable us to save stack space by hoisting static owner info types to
be const global variables.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 19e921d1586f..d5672ab58b1f 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c | |||
@@ -536,7 +536,7 @@ __xfs_bmap_add_free( | |||
536 | struct xfs_trans *tp, | 536 | struct xfs_trans *tp, |
537 | xfs_fsblock_t bno, | 537 | xfs_fsblock_t bno, |
538 | xfs_filblks_t len, | 538 | xfs_filblks_t len, |
539 | struct xfs_owner_info *oinfo, | 539 | const struct xfs_owner_info *oinfo, |
540 | bool skip_discard) | 540 | bool skip_discard) |
541 | { | 541 | { |
542 | struct xfs_extent_free_item *new; /* new element */ | 542 | struct xfs_extent_free_item *new; /* new element */ |