diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2024-03-04 10:24:08 +0800 |
---|---|---|
committer | Chandan Babu R <chandanbabu@kernel.org> | 2024-04-22 12:51:43 +0530 |
commit | 05150d46a33fdb567d9849b831aa139e1693e39c (patch) | |
tree | 979d7cb6c4c704f939fb1699df696688ad0feb4a /fs/xfs/scrub | |
parent | d983ff63af6068a6773283660222fff10f66e184 (diff) |
xfs: Remove unused function is_rt_data_fork
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>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r-- | fs/xfs/scrub/rmap_repair.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/xfs/scrub/rmap_repair.c b/fs/xfs/scrub/rmap_repair.c index 25acd69614c2..e8080eba37d2 100644 --- a/fs/xfs/scrub/rmap_repair.c +++ b/fs/xfs/scrub/rmap_repair.c @@ -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 |