]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs: Remove i_private_data
authorJan Kara <jack@suse.cz>
Thu, 26 Mar 2026 09:54:20 +0000 (10:54 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 26 Mar 2026 14:03:30 +0000 (15:03 +0100)
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>
fs/inode.c
include/linux/fs.h

index 4f98a5f04bbda11834c55947c050ee207a2a4f92..d5774e627a9cdc24b27fcf96c6f75bbfe0a570cd 100644 (file)
@@ -283,7 +283,6 @@ int inode_init_always_gfp(struct super_block *sb, struct inode *inode, gfp_t gfp
        atomic_set(&mapping->nr_thps, 0);
 #endif
        mapping_set_gfp_mask(mapping, GFP_HIGHUSER_MOVABLE);
-       mapping->i_private_data = NULL;
        mapping->writeback_index = 0;
        init_rwsem(&mapping->invalidate_lock);
        lockdep_set_class_and_name(&mapping->invalidate_lock,
index 0fc0cb23000e1d3001b92f6b2c9db3796545ce5a..d488459396f40d5a3517fa143945b28b369ac349 100644 (file)
@@ -465,7 +465,6 @@ extern const struct address_space_operations empty_aops;
  * @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.
- * @i_private_data: For use by the owner of the address_space.
  */
 struct address_space {
        struct inode            *host;
@@ -486,7 +485,6 @@ struct address_space {
        spinlock_t              i_private_lock;
        struct list_head        i_private_list;
        struct rw_semaphore     i_mmap_rwsem;
-       void *                  i_private_data;
 } __attribute__((aligned(sizeof(long)))) __randomize_layout;
        /*
         * On most architectures that alignment is already the case; but