summaryrefslogtreecommitdiffstats
path: root/mm/swap_state.c
diff options
context:
space:
mode:
authorchenqiwu <chenqiwu@xiaomi.com>2020-06-02 06:48:36 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-02 19:59:08 +0200
commit213516ac0752144ad1c82a0f8393f805c8abbc76 (patch)
treee63afaf7c83b02741f83fb137764562d74aa25e3 /mm/swap_state.c
parentmm/gup.c: further document vma_permits_fault() (diff)
downloadlinux-213516ac0752144ad1c82a0f8393f805c8abbc76.tar.xz
linux-213516ac0752144ad1c82a0f8393f805c8abbc76.zip
mm/swapfile: use list_{prev,next}_entry() instead of open-coding
Use list_{prev,next}_entry() instead of list_entry() for better code readability. Signed-off-by: chenqiwu <chenqiwu@xiaomi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Matthew Wilcox <willy@infradead.org> Cc: David Hildenbrand <david@redhat.com> Cc: Wei Yang <richard.weiyang@gmail.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Cc: Yang Shi <yang.shi@linux.alibaba.com> Cc: Qian Cai <cai@lca.pw> Cc: Baoquan He <bhe@redhat.com> Link: http://lkml.kernel.org/r/1586599916-15456-2-git-send-email-qiwuchen55@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions