loop: remove the racy bd_inode->i_mapping->nrpages asserts
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Mar 2022 05:29:10 +0000 (07:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 12:54:09 +0000 (06:54 -0600)
commit98ded54a33839e7b8f8bed772e01a544f48e33a7
tree28bdab9099eb16a4d09ef597da402aa548146e22
parentb15ed54694fbba714931dd81790f86797cf8bed2
loop: remove the racy bd_inode->i_mapping->nrpages asserts

Nothing prevents a file system or userspace opener of the block device
from redirtying the page right afte sync_blockdev returned.  Fortunately
data in the page cache during a block device change is mostly harmless
anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Tested-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20220330052917.2566582-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c