OSDN Git Service

f2fs: don't pass a bio to f2fs_target_device
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Feb 2022 12:41:22 +0000 (14:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Mar 2022 00:59:03 +0000 (17:59 -0700)
commit5189810a6687b6f01d35b4a7b407eb1f6edb97e5
tree57b54ff13fac2a3ea150faf4186411b92a18d6a0
parentfbe7c2ef5e1d1c218190c059432cdc87043c1275
f2fs: don't pass a bio to f2fs_target_device

Set the bdev at bio allocation time by changing the f2fs_target_device
calling conventions, so that no bio needs to be passed in.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20220228124123.856027-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/f2fs/data.c
fs/f2fs/f2fs.h