aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2018-10-16 08:34:50 -0600
committerJaegeuk Kim <[email protected]>2018-10-16 19:09:39 -0700
commitb93f654d73fa09088041efa77972b1d616a75fcb (patch)
tree448df42a886a3898c03145505ebddbb46f24ac18
parent730746ce88da943088fe9aeb845a5daf6e315d98 (diff)
f2fs: remove request_list check in is_idle()
This doesn't work on stacked devices, and it doesn't work on blk-mq devices. The request_list is only used on legacy, which we don't have much of anymore, and soon won't have any of. Kill the check. Cc: Jaegeuk Kim <[email protected]> Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
-rw-r--r--fs/f2fs/f2fs.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index cfc7e1b6c850..f865c5ed965d 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -1394,13 +1394,6 @@ static inline unsigned int f2fs_time_to_wait(struct f2fs_sb_info *sbi,
static inline bool is_idle(struct f2fs_sb_info *sbi, int type)
{
- struct block_device *bdev = sbi->sb->s_bdev;
- struct request_queue *q = bdev_get_queue(bdev);
- struct request_list *rl = &q->root_rl;
-
- if (rl->count[BLK_RW_SYNC] || rl->count[BLK_RW_ASYNC])
- return false;
-
return f2fs_time_over(sbi, type);
}