mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
fs: Drop i_private_list from address_space
Nobody is using i_private_list anymore. Remove it. Signed-off-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20260326095354.16340-84-jack@suse.cz Tested-by: syzbot@syzkaller.appspotmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
cb6d109b9c
commit
f219798ce2
|
|
@ -481,7 +481,6 @@ static void __address_space_init_once(struct address_space *mapping)
|
|||
{
|
||||
xa_init_flags(&mapping->i_pages, XA_FLAGS_LOCK_IRQ | XA_FLAGS_ACCOUNT);
|
||||
init_rwsem(&mapping->i_mmap_rwsem);
|
||||
INIT_LIST_HEAD(&mapping->i_private_list);
|
||||
spin_lock_init(&mapping->i_private_lock);
|
||||
mapping->i_mmap = RB_ROOT_CACHED;
|
||||
}
|
||||
|
|
@ -795,7 +794,6 @@ void clear_inode(struct inode *inode)
|
|||
* nor even WARN_ON(!mapping_empty).
|
||||
*/
|
||||
xa_unlock_irq(&inode->i_data.i_pages);
|
||||
BUG_ON(!list_empty(&inode->i_data.i_private_list));
|
||||
BUG_ON(!(inode_state_read_once(inode) & I_FREEING));
|
||||
BUG_ON(inode_state_read_once(inode) & I_CLEAR);
|
||||
BUG_ON(!list_empty(&inode->i_wb_list));
|
||||
|
|
|
|||
|
|
@ -471,7 +471,6 @@ struct mapping_metadata_bhs {
|
|||
* @flags: Error bits and flags (AS_*).
|
||||
* @wb_err: The most recent error which has occurred.
|
||||
* @i_private_lock: For use by the owner of the address_space.
|
||||
* @i_private_list: For use by the owner of the address_space.
|
||||
*/
|
||||
struct address_space {
|
||||
struct inode *host;
|
||||
|
|
@ -490,7 +489,6 @@ struct address_space {
|
|||
unsigned long flags;
|
||||
errseq_t wb_err;
|
||||
spinlock_t i_private_lock;
|
||||
struct list_head i_private_list;
|
||||
struct rw_semaphore i_mmap_rwsem;
|
||||
} __attribute__((aligned(sizeof(long)))) __randomize_layout;
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user