Skip to content

Commit 5084bf6

Browse files
Chen Wandundjwong
authored andcommitted
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: b1de6fc ("xfs: fix log reservation overflows when allocating large rt extents") Signed-off-by: Chen Wandun <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent 13eaec4 commit 5084bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/libxfs/xfs_trans_resv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ xfs_calc_inode_chunk_res(
202202
* blocks as needed to mark inuse MAXEXTLEN blocks' worth of realtime extents,
203203
* as well as the realtime summary block.
204204
*/
205-
unsigned int
205+
static unsigned int
206206
xfs_rtalloc_log_count(
207207
struct xfs_mount *mp,
208208
unsigned int num_ops)

0 commit comments

Comments
 (0)