diff options
author | Chen Wandun <chenwandun@huawei.com> | 2020-01-16 13:54:03 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@redhat.com> | 2020-01-16 13:54:03 -0500 |
commit | 3b22c417b16071f6cb07f4e25675890475636f61 (patch) | |
tree | 9afe6869cb9b505f6690f7fc4ba0f38f74070746 | |
parent | 92094846ebf559567e8cdd8c5b3a9e67094827e5 (diff) | |
download | xfsprogs-dev-libxfs-5.5-sync.tar.gz |
xfs: Make the symbol 'xfs_rtalloc_log_count' staticlibxfs-5.5-sync
Source kernel commit: 5084bf6b2006fcd46f1e44e3c51b687507b362e2
Fix the following sparse warning:
fs/xfs/libxfs/xfs_trans_resv.c:206:1: warning: symbol 'xfs_rtalloc_log_count' was not declared. Should it be static?
Fixes: b1de6fc7520f ("xfs: fix log reservation overflows when allocating large rt extents")
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | libxfs/xfs_trans_resv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libxfs/xfs_trans_resv.c b/libxfs/xfs_trans_resv.c index dfad23ed06..f0b48a7df2 100644 --- a/libxfs/xfs_trans_resv.c +++ b/libxfs/xfs_trans_resv.c @@ -200,7 +200,7 @@ xfs_calc_inode_chunk_res( * blocks as needed to mark inuse MAXEXTLEN blocks' worth of realtime extents, * as well as the realtime summary block. */ -unsigned int +static unsigned int xfs_rtalloc_log_count( struct xfs_mount *mp, unsigned int num_ops) |