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-28 18:55:06 -0400 |
commit | 45e88613e78b2e7dd2f0db076827e7ddaa19a2c4 (patch) | |
tree | 00c616a5cec2a0befc2d1097185f27f314fb7e3b | |
parent | a8c19dad333ad851abc37d537e0c292189c0aead (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 |