On Thu, Jun 18, 2020 at 10:01:10AM +1000, Dave Chinner wrote: > And, really, if we are playing "re-use existing bits" games because > we've run out of process flags, all these memalloc flags should be > moved to a new field in the task, say current->memalloc_flags. You > could also move PF_SWAPWRITE, PF_LOCAL_THROTTLE, and PF_KSWAPD into > that field as well as they are all memory allocation context process > flags... FWIW There's still 23 bits free after task_struct::in_memstall. That word has 'current only' semantics, just like PF.