Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs: Remove i_private_data

Nobody is using it anymore.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260326095354.16340-68-jack@suse.cz
Tested-by: syzbot@syzkaller.appspotmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Jan Kara and committed by
Christian Brauner
cd336f2e 3833d335

-3
-1
fs/inode.c
··· 283 283 atomic_set(&mapping->nr_thps, 0); 284 284 #endif 285 285 mapping_set_gfp_mask(mapping, GFP_HIGHUSER_MOVABLE); 286 - mapping->i_private_data = NULL; 287 286 mapping->writeback_index = 0; 288 287 init_rwsem(&mapping->invalidate_lock); 289 288 lockdep_set_class_and_name(&mapping->invalidate_lock,
-2
include/linux/fs.h
··· 465 465 * @wb_err: The most recent error which has occurred. 466 466 * @i_private_lock: For use by the owner of the address_space. 467 467 * @i_private_list: For use by the owner of the address_space. 468 - * @i_private_data: For use by the owner of the address_space. 469 468 */ 470 469 struct address_space { 471 470 struct inode *host; ··· 485 486 spinlock_t i_private_lock; 486 487 struct list_head i_private_list; 487 488 struct rw_semaphore i_mmap_rwsem; 488 - void * i_private_data; 489 489 } __attribute__((aligned(sizeof(long)))) __randomize_layout; 490 490 /* 491 491 * On most architectures that alignment is already the case; but