]> www.infradead.org Git - users/willy/linux.git/commit
fs: don't open code lru_to_page()
authorNikolay Borisov <nborisov@suse.com>
Wed, 5 Dec 2018 00:14:26 +0000 (11:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 10 Dec 2018 08:29:18 +0000 (19:29 +1100)
commitdf836a7354379a88792b8739dd42303966878ce8
tree02382f34c573093c2abd0c7fb2902a0e5e062558
parent90b0c72409d13035102348b20641b43bf87d624c
fs: don't open code lru_to_page()

Multiple filesystems open code lru_to_page().  Rectify this by moving the
macro from mm_inline (which is specific to lru stuff) to the more generic
mm.h header and start using the macro where appropriate.

No functional changes.

Link: http://lkml.kernel.org/r/20181129104810.23361-1-nborisov@suse.com
Link: https://lkml.kernel.org/r/20181129075301.29087-1-nborisov@suse.com
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Pankaj gupta <pagupta@redhat.com>
Acked-by: "Yan, Zheng" <zyan@redhat.com> [ceph]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
fs/afs/file.c
fs/btrfs/extent_io.c
fs/ceph/addr.c
fs/cifs/file.c
fs/ext4/readpage.c
fs/ocfs2/aops.c
fs/orangefs/inode.c
include/linux/mm.h
include/linux/mm_inline.h
mm/swap.c