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.

ext4: remove unused i_fc_wait

i_fc_wait is only initialized in ext4_fc_init_inode() and never used for
waiting or wakeups. Drop it.

Signed-off-by: Li Chen <me@linux.beauty>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20260120121941.144192-1-me@linux.beauty
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

authored by

Li Chen and committed by
Theodore Ts'o
eb106076 9b25f381

+1 -5
-4
fs/ext4/ext4.h
··· 28 28 #include <linux/seqlock.h> 29 29 #include <linux/mutex.h> 30 30 #include <linux/timer.h> 31 - #include <linux/wait.h> 32 31 #include <linux/sched/signal.h> 33 32 #include <linux/blockgroup_lock.h> 34 33 #include <linux/percpu_counter.h> ··· 1080 1081 ext4_lblk_t i_fc_lblk_len; 1081 1082 1082 1083 spinlock_t i_raw_lock; /* protects updates to the raw inode */ 1083 - 1084 - /* Fast commit wait queue for this inode */ 1085 - wait_queue_head_t i_fc_wait; 1086 1084 1087 1085 /* 1088 1086 * Protect concurrent accesses on i_fc_lblk_start, i_fc_lblk_len
+1 -1
fs/ext4/fast_commit.c
··· 13 13 #include "mballoc.h" 14 14 15 15 #include <linux/lockdep.h> 16 + #include <linux/wait_bit.h> 16 17 /* 17 18 * Ext4 Fast Commits 18 19 * ----------------- ··· 216 215 ext4_clear_inode_state(inode, EXT4_STATE_FC_COMMITTING); 217 216 INIT_LIST_HEAD(&ei->i_fc_list); 218 217 INIT_LIST_HEAD(&ei->i_fc_dilist); 219 - init_waitqueue_head(&ei->i_fc_wait); 220 218 } 221 219 222 220 static bool ext4_fc_disabled(struct super_block *sb)