diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 24 | ||||
-rw-r--r-- | include/linux/sched.h | 3 |
2 files changed, 0 insertions, 27 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 7e7b0a95260f..5a85a3878189 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -421,28 +421,6 @@ int pagecache_write_end(struct file *, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata); -/* - * Two-state lock - can be taken for add or block - both states are shared, - * like read side of rwsem, but conflict with other state: - */ -struct pagecache_lock { - atomic_long_t v; - wait_queue_head_t wait; -}; - -static inline void pagecache_lock_init(struct pagecache_lock *lock) -{ - atomic_long_set(&lock->v, 0); - init_waitqueue_head(&lock->wait); -} - -void pagecache_add_put(struct pagecache_lock *); -void pagecache_add_get(struct pagecache_lock *); -void __pagecache_block_put(struct pagecache_lock *); -void __pagecache_block_get(struct pagecache_lock *); -void pagecache_block_put(struct pagecache_lock *); -void pagecache_block_get(struct pagecache_lock *); - /** * struct address_space - Contents of a cacheable, mappable object. * @host: Owner, either the inode or the block_device. @@ -477,8 +455,6 @@ struct address_space { spinlock_t private_lock; struct list_head private_list; void *private_data; - 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 diff --git a/include/linux/sched.h b/include/linux/sched.h index f3bbf171e97d..425c0d8557a9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -938,9 +938,6 @@ struct task_struct { unsigned int in_ubsan; #endif - /* currently held lock, for avoiding recursing in fault path: */ - struct pagecache_lock *pagecache_lock; - /* Journalling filesystem info: */ void *journal_info; |