diff options
author | Christoph Hellwig <hch@lst.de> | 2021-03-11 12:01:37 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-11 15:47:48 +0100 |
commit | a8affc03a9b375e19bc81573de0c9108317d78c7 (patch) | |
tree | 20091872316d41f38bb53134fb340caf78710203 /fs/squashfs | |
parent | block: rsxx: fix error return code of rsxx_pci_probe() (diff) | |
download | linux-a8affc03a9b375e19bc81573de0c9108317d78c7.tar.xz linux-a8affc03a9b375e19bc81573de0c9108317d78c7.zip |
block: rename BIO_MAX_PAGES to BIO_MAX_VECS
Ever since the addition of multipage bio_vecs BIO_MAX_PAGES has been
horribly confusingly misnamed. Rename it to BIO_MAX_VECS to stop
confusing users of the bio API.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20210311110137.1132391-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/squashfs')
-rw-r--r-- | fs/squashfs/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/squashfs/block.c b/fs/squashfs/block.c index 45f44425d856..b9e87ebb1060 100644 --- a/fs/squashfs/block.c +++ b/fs/squashfs/block.c @@ -87,7 +87,7 @@ static int squashfs_bio_read(struct super_block *sb, u64 index, int length, int error, i; struct bio *bio; - if (page_count <= BIO_MAX_PAGES) + if (page_count <= BIO_MAX_VECS) bio = bio_alloc(GFP_NOIO, page_count); else bio = bio_kmalloc(GFP_NOIO, page_count); |