From c88022c2bf2ca0a42a6cebcd5f8a0979c892d099 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 23 Aug 2018 20:03:22 -0400 Subject: cacheline align pagecache add lock --- include/linux/fs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 6f6bcd41c253..d26830454aa5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -416,7 +416,6 @@ void pagecache_block_get(struct pagecache_lock *); struct address_space { struct inode *host; /* owner: inode, block_device */ struct radix_tree_root i_pages; /* cached pages */ - struct pagecache_lock add_lock; /* protects adding new pages */ atomic_t i_mmap_writable;/* count VM_SHARED mappings */ struct rb_root_cached i_mmap; /* tree of private and shared mappings */ struct rw_semaphore i_mmap_rwsem; /* protect tree, count, list */ @@ -432,6 +431,8 @@ struct address_space { struct list_head private_list; /* for use by the address_space */ void *private_data; /* ditto */ errseq_t wb_err; + struct pagecache_lock add_lock + ____cacheline_aligned_in_smp; /* protects adding new pages */ } __attribute__((aligned(sizeof(long)))) __randomize_layout; /* * On most architectures that alignment is already the case; but -- cgit v1.2.3