Skip to content

Commit 46f5869

Browse files
Yang Xiuweikawasaki
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>
1 parent f962a4d commit 46f5869

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)