History

block: always define BIO_MAX_PAGES as 256

Now multi-page bvec can cover CONFIG_THP_SWAP, so we don't need to increase BIO_MAX_PAGES for it. CONFIG_THP_SWAP needs to split one THP into normal pages and adds them all to one bio. With multipage-bvec, it just takes one bvec to hold them all.

Ming Lei committed 7 years ago

Commit 68614281 parent 07173c31 file · +0 −8Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/bio.h+0−8
@@ -34,15 +34,7 @@ · 33 unmodified lines
34#define BIO_BUG_ON34#define BIO_BUG_ON
35#endif35#endif
36 36
37#ifdef CONFIG_THP_SWAP
38#if HPAGE_PMD_NR > 256
39#define BIO_MAX_PAGES HPAGE_PMD_NR
40#else
41#define BIO_MAX_PAGES 25637#define BIO_MAX_PAGES 256
42#endif
43#else
44#define BIO_MAX_PAGES 256
45#endif
46 38
47#define bio_prio(bio) (bio)->bi_ioprio39#define bio_prio(bio) (bio)->bi_ioprio
48#define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio)40#define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t