]> git.ipfire.org Git - people/ms/linux.git/commit - mm/huge_memory.c
page cache: use xa_lock
authorMatthew Wilcox <mawilcox@microsoft.com>
Tue, 10 Apr 2018 23:36:56 +0000 (16:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:39 +0000 (10:28 -0700)
commitb93b016313b3ba8003c3b8bb71f569af91f19fc7
treead4be96414189dcdf8c972f351ba430996e9fdff
parentf6bb2a2c0b81c47282ddb7883f92e65a063c27dd
page cache: use xa_lock

Remove the address_space ->tree_lock and use the xa_lock newly added to
the radix_tree_root.  Rename the address_space ->page_tree to ->i_pages,
since we don't really care that it's a tree.

[willy@infradead.org: fix nds32, fs/dax.c]
Link: http://lkml.kernel.org/r/20180406145415.GB20605@bombadil.infradead.orgLink:
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
39 files changed:
Documentation/cgroup-v1/memory.txt
Documentation/vm/page_migration
arch/arm/include/asm/cacheflush.h
arch/nds32/include/asm/cacheflush.h
arch/nios2/include/asm/cacheflush.h
arch/parisc/include/asm/cacheflush.h
drivers/staging/lustre/lustre/llite/glimpse.c
drivers/staging/lustre/lustre/mdc/mdc_request.c
fs/afs/write.c
fs/btrfs/compression.c
fs/btrfs/extent_io.c
fs/buffer.c
fs/cifs/file.c
fs/dax.c
fs/f2fs/data.c
fs/f2fs/dir.c
fs/f2fs/inline.c
fs/f2fs/node.c
fs/fs-writeback.c
fs/inode.c
fs/nilfs2/btnode.c
fs/nilfs2/page.c
include/linux/backing-dev.h
include/linux/fs.h
include/linux/mm.h
include/linux/pagemap.h
mm/filemap.c
mm/huge_memory.c
mm/khugepaged.c
mm/memcontrol.c
mm/migrate.c
mm/page-writeback.c
mm/readahead.c
mm/rmap.c
mm/shmem.c
mm/swap_state.c
mm/truncate.c
mm/vmscan.c
mm/workingset.c