]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: const-ify xfs_owner_info arguments
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 27 Feb 2019 23:13:44 +0000 (17:13 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 27 Feb 2019 23:13:44 +0000 (17:13 -0600)
commit5837e73bc9994b6ea733e4cd1bec672f42889797
tree2a94899e12f9d3d2f0811b273d1d000cb5ca5fd2
parentc351439733af03ab714c6762aca197d4f0623367
xfs: const-ify xfs_owner_info arguments

Source kernel commit: 66e3237e724c6650dca03627b40bb00a812d3f7a

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c
libxfs/xfs_alloc.h
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h
libxfs/xfs_rmap.c
libxfs/xfs_rmap.h