We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa95524 commit 4cdf1bdCopy full SHA for 4cdf1bd
include/linux/blkdev.h
@@ -269,11 +269,16 @@ static inline dev_t disk_devt(struct gendisk *disk)
269
return MKDEV(disk->major, disk->first_minor);
270
}
271
272
+#ifdef CONFIG_TRANSPARENT_HUGEPAGE
273
/*
274
* We should strive for 1 << (PAGE_SHIFT + MAX_PAGECACHE_ORDER)
275
* however we constrain this to what we can validate and test.
276
*/
277
#define BLK_MAX_BLOCK_SIZE SZ_64K
278
+#else
279
+#define BLK_MAX_BLOCK_SIZE PAGE_SIZE
280
+#endif
281
+
282
283
/* blk_validate_limits() validates bsize, so drivers don't usually need to */
284
static inline int blk_validate_block_size(unsigned long bsize)
0 commit comments