]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ext4: remove unused i_fc_wait
authorLi Chen <me@linux.beauty>
Tue, 20 Jan 2026 12:19:41 +0000 (20:19 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 Apr 2026 14:34:53 +0000 (10:34 -0400)
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>
fs/ext4/ext4.h
fs/ext4/fast_commit.c

index 7617e2d454ea516fee9047366458c0bda568fddf..7d2564f642267c2ff1b8c94870e717eddc08b46d 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/seqlock.h>
 #include <linux/mutex.h>
 #include <linux/timer.h>
-#include <linux/wait.h>
 #include <linux/sched/signal.h>
 #include <linux/blockgroup_lock.h>
 #include <linux/percpu_counter.h>
@@ -1082,9 +1081,6 @@ struct ext4_inode_info {
 
        spinlock_t i_raw_lock;  /* protects updates to the raw inode */
 
-       /* Fast commit wait queue for this inode */
-       wait_queue_head_t i_fc_wait;
-
        /*
         * Protect concurrent accesses on i_fc_lblk_start, i_fc_lblk_len
         * and inode's EXT4_FC_STATE_COMMITTING state bit.
index 2f0057e049346cf364be277c39e8ef3690cd0ad3..7ebbfb137ef8009c19670893e5c9163febdf3707 100644 (file)
@@ -13,6 +13,7 @@
 #include "mballoc.h"
 
 #include <linux/lockdep.h>
+#include <linux/wait_bit.h>
 /*
  * Ext4 Fast Commits
  * -----------------
@@ -215,7 +216,6 @@ void ext4_fc_init_inode(struct inode *inode)
        ext4_clear_inode_state(inode, EXT4_STATE_FC_COMMITTING);
        INIT_LIST_HEAD(&ei->i_fc_list);
        INIT_LIST_HEAD(&ei->i_fc_dilist);
-       init_waitqueue_head(&ei->i_fc_wait);
 }
 
 static bool ext4_fc_disabled(struct super_block *sb)