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
3434 #define BIO_BUG_ON
3535 #endif
3636
37−#ifdef CONFIG_THP_SWAP
38−#if HPAGE_PMD_NR > 256
39−#define BIO_MAX_PAGES HPAGE_PMD_NR
40−#else
4137 #define BIO_MAX_PAGES 256
42−#endif
43−#else
44−#define BIO_MAX_PAGES 256
45−#endif
4638
4739 #define bio_prio(bio) (bio)->bi_ioprio
4840 #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