> + /* > + * By flagging sys_swapon, a sysadmin can tell us to > + * either do sinle-time area discards only, or to just > + * perform discards for released swap page-clusters. > + * Now it's time to adjust the p->flags accordingly. > + */ > + if (swap_flags & SWAP_FLAG_DISCARD_ONCE) > + p->flags &= ~SWP_PAGE_DISCARD; > + else if (swap_flags & SWAP_FLAG_DISCARD_PAGES) > + p->flags &= ~SWP_AREA_DISCARD;
When using old swapon(8), this code turn off both flags, right? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/