On 13/11/2024 09:47, Luis Chamberlain wrote:
#include <linux/uuid.h>
#include <linux/xarray.h>
#include <linux/file.h>
+#include <linux/pagemap.h>
struct module;
struct request_queue;
@@ -268,10 +269,13 @@ static inline dev_t disk_devt(struct gendisk *disk)
return MKDEV(disk->major, disk->first_minor);
}
+/* We should strive for 1 << (PAGE_SHIFT + MAX_PAGECACHE_ORDER) */
I fell that this comment can be reworked.
I think that what we want to say is that hard limit is 1 << (PAGE_SHIFT
+ MAX_PAGECACHE_ORDER), but we set at sensible size of 64K.
+#define BLK_MAX_BLOCK_SIZE (SZ_64K)
+