> diff --git a/block/bdev.c b/block/bdev.c > index 33f9c4605e3a..b5a362156ca1 100644 > --- a/block/bdev.c > +++ b/block/bdev.c > @@ -472,16 +472,28 @@ void bdev_drop(struct block_device *bdev) > iput(BD_INODE(bdev)); > } > > +static int bdev_pages_count(struct inode *inode, void *data) This are guaranteed to operate on the bdev superblock, so just hardcoding the s_inodes list seems fine here as it keeps the code much simpler.