]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: Make the symbol 'xfs_rtalloc_log_count' static
authorChen Wandun <chenwandun@huawei.com>
Wed, 22 Jan 2020 16:29:46 +0000 (11:29 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 22 Jan 2020 16:29:46 +0000 (11:29 -0500)
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>
libxfs/xfs_trans_resv.c

index dfad23ed063c60e6c08d179ecb2720eea6bbed53..f0b48a7df29ea397719abad26ec491653bd8fe04 100644 (file)
@@ -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)