diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-16 17:38:30 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-02 00:53:39 +0300 |
commit | f46f2a3198017cff1f3f8f71de74ff7abee3aa16 (patch) | |
tree | 14e7d2c23b6f53d95c2237afa20f584e84ee4d97 /drivers/block/loop.c | |
parent | ee763e2143e79fa41d2818e620e1e8ff69af87bf (diff) | |
download | linux-f46f2a3198017cff1f3f8f71de74ff7abee3aa16.tar.xz |
loop: do not call set_blocksize
set_blocksize is used by file systems to use their preferred buffer cache
block size. Block drivers should not set it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 9a27d4f1c08a..b42c728620c9 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1164,9 +1164,6 @@ static int loop_configure(struct loop_device *lo, fmode_t mode, size = get_loop_size(lo, file); loop_set_size(lo, size); - set_blocksize(bdev, S_ISBLK(inode->i_mode) ? - block_size(inode->i_bdev) : PAGE_SIZE); - lo->lo_state = Lo_bound; if (part_shift) lo->lo_flags |= LO_FLAGS_PARTSCAN; |