diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-08-23 20:03:22 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-08-31 14:48:45 -0400 |
commit | c88022c2bf2ca0a42a6cebcd5f8a0979c892d099 (patch) | |
tree | e70f553188d64e45963517a1b81aa7433edae197 | |
parent | 4ac2ee396a6f5bd5d07b2158c34727a628a1fdbf (diff) |
cacheline align pagecache add lock
-rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |