aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_trans_resv.c
diff options
context:
space:
mode:
authorChen Wandun <chenwandun@huawei.com>2019-12-20 08:07:31 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2019-12-20 08:07:31 -0800
commit5084bf6b2006fcd46f1e44e3c51b687507b362e2 (patch)
tree55e599df1bceb36a211b1f5c154b2e2e1aa80cd7 /fs/xfs/libxfs/xfs_trans_resv.c
parentxfs: don't commit sunit/swidth updates to disk if that would cause repair failures (diff)
downloadlinux-dev-5084bf6b2006fcd46f1e44e3c51b687507b362e2.tar.xz
linux-dev-5084bf6b2006fcd46f1e44e3c51b687507b362e2.zip
xfs: Make the symbol 'xfs_rtalloc_log_count' static
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>
Diffstat (limited to '')
-rw-r--r--fs/xfs/libxfs/xfs_trans_resv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_trans_resv.c b/fs/xfs/libxfs/xfs_trans_resv.c
index 824073a839ac..7a9c04920505 100644
--- a/fs/xfs/libxfs/xfs_trans_resv.c
+++ b/fs/xfs/libxfs/xfs_trans_resv.c
@@ -202,7 +202,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)