Skip to contentSkip to conversation

do_swap_page() and !CONFIG_SWAP

DISCUSSION Dan Aloni 1 participant 1 message Jul 22, 2007

lore
Share & tools
lore

Dan Aloni

author
#0 lore raw

Hello,

Is there any valid reason (except memory corruption) for do_swap_page() to be called in a x86_64 2.6.21.5 kernel where CONFIG_SWAP is not selected?

If not, does it make sense to put there something in lines of:

       print_bad_pte(vma, orig_pte, address);
       panic("unexpected swap pte - possible page table memory corruption\n");

?

Signature · 3 lines
Dan Aloni
XIV LTD, http://www.xivstorage.com
da-x (at) monatomic.org, dan (at) xiv.co.il