[PATCH v3 1/3] mm/shmem: add __rcu annotations and properly deref radix entry

2018-04-09 Thread Mike Kravetz
In preparation for memfd code restucture, clean up sparse warnings. Most changes required adding __rcu annotations. The routine find_swap_entry was modified to properly deference radix tree entries. Signed-off-by: Mike Kravetz Signed-off-by: Matthew Wilcox

[PATCH v3 1/3] mm/shmem: add __rcu annotations and properly deref radix entry

2018-04-09 Thread Mike Kravetz
In preparation for memfd code restucture, clean up sparse warnings. Most changes required adding __rcu annotations. The routine find_swap_entry was modified to properly deference radix tree entries. Signed-off-by: Mike Kravetz Signed-off-by: Matthew Wilcox --- mm/shmem.c | 20