Skip to content

Commit d4d78dd

Browse files
Yang Xiuweiaxboe
authored andcommitted
block: remove redundant kill_bdev() call in set_blocksize()
The second kill_bdev() call in set_blocksize() is redundant as the first call already clears all buffers and pagecache, and locks prevent new pagecache creation between the calls. Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 2c04718 commit d4d78dd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

block/bdev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ int set_blocksize(struct file *file, int size)
208208

209209
inode->i_blkbits = blksize_bits(size);
210210
mapping_set_folio_min_order(inode->i_mapping, get_order(size));
211-
kill_bdev(bdev);
212211
filemap_invalidate_unlock(inode->i_mapping);
213212
inode_unlock(inode);
214213
}

0 commit comments

Comments
 (0)