]> git.baikalelectronics.ru Git - kernel.git/commit
zram: replace fsync_bdev with sync_blockdev
authorMing Lei <ming.lei@redhat.com>
Mon, 25 Oct 2021 02:54:26 +0000 (10:54 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Nov 2021 20:43:12 +0000 (14:43 -0600)
commitb228b41af7b26ad20f6c7e8f334160f9f4d63a94
tree6291fd387dabbb936239a97b9866fe175b5d1959
parent6a1727bc213fe4ad3300e470fcec5f7dc3d7b1c5
zram: replace fsync_bdev with sync_blockdev

When calling fsync_bdev(), zram driver guarantees that the bdev won't be
opened by anyone, then there can't be one active fs/superblock over the
zram bdev, so replace fsync_bdev with sync_blockdev.

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Link: https://lore.kernel.org/r/20211025025426.2815424-5-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/zram/zram_drv.c