[Intel-gfx] [PATCH v4] mm, drm/i915: mark pinned shmemfs pages as unevictable
Michal Hocko
mhocko at kernel.org
Mon Nov 5 16:41:35 UTC 2018
On Mon 05-11-18 22:33:13, Kuo-Hsin Yang wrote:
> On Mon, Nov 5, 2018 at 9:02 PM Michal Hocko <mhocko at kernel.org> wrote:
> >
> > On Mon 05-11-18 19:13:48, Kuo-Hsin Yang wrote:
[...]
> > > + * @pvec: pagevec with pages to check
> > > *
> > > - * Checks pages for evictability and moves them to the appropriate lru list.
> > > - *
> > > - * This function is only used for SysV IPC SHM_UNLOCK.
> > > + * This function is only used to move shmem pages.
> >
> > I do not really see anything that would be shmem specific here. We can
> > use this function for any LRU pages unless I am missing something
> > obscure. I would just drop the last sentence.
>
> OK, this function should not be specific to shmem pages.
>
> Is it OK to remove the #ifdef SHMEM surrounding check_move_unevictable_pages?
Yes, I think so.
--
Michal Hocko
SUSE Labs
More information about the Intel-gfx
mailing list