Re: [RFC PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_CLUSTER

2013-05-21 Thread Rafael Aquini
Howdy Kosaki-san, Thanks for your time over this one :) On Mon, May 20, 2013 at 08:55:33PM -0400, KOSAKI Motohiro wrote: > (5/20/13 8:04 PM), Rafael Aquini wrote: > > Intruduce a new flag to make page-cluster fine-grained discards while > > swapping > > conditional, as they can be considered det

Re: [RFC PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_CLUSTER

2013-05-20 Thread KOSAKI Motohiro
(5/20/13 8:04 PM), Rafael Aquini wrote: > Intruduce a new flag to make page-cluster fine-grained discards while swapping > conditional, as they can be considered detrimental to some setups. However, > keep allowing batched discards at sys_swapon() time, when enabled by the > system administrator.

[RFC PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_CLUSTER

2013-05-20 Thread Rafael Aquini
Intruduce a new flag to make page-cluster fine-grained discards while swapping conditional, as they can be considered detrimental to some setups. However, keep allowing batched discards at sys_swapon() time, when enabled by the system administrator. Signed-off-by: Rafael Aquini --- include/linu