]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: Remove unused function is_rt_data_fork
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Mon, 4 Mar 2024 02:24:08 +0000 (10:24 +0800)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 22 Apr 2024 07:21:43 +0000 (12:51 +0530)
The function are defined in the rmap_repair.c file, but not called
elsewhere, so delete the unused function.

fs/xfs/scrub/rmap_repair.c:436:1: warning: unused function 'is_rt_data_fork'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8425
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/rmap_repair.c

index 25acd69614c2ceb92a5d7c3fff09ae64d7f44623..e8080eba37d29bf5a854e51547d6a2501d21bef6 100644 (file)
@@ -432,14 +432,6 @@ out:
        return error;
 }
 
-static inline bool
-is_rt_data_fork(
-       struct xfs_inode        *ip,
-       int                     whichfork)
-{
-       return XFS_IS_REALTIME_INODE(ip) && whichfork == XFS_DATA_FORK;
-}
-
 /*
  * Iterate the block mapping btree to collect rmap records for anything in this
  * fork that matches the AG.  Sets @mappings_done to true if we've scanned the