diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-09 16:21:00 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-09 16:58:18 -0400 |
commit | 3b80552e70573764bbf38b89c58749aef9dd8753 (patch) | |
tree | 67b75c0926205875ec102c2587770285d64d5088 /fs | |
parent | a7e2dd58fbbd8882557135b9433192e038fdb88e (diff) | |
download | linux-stable-3b80552e70573764bbf38b89c58749aef9dd8753.tar.gz linux-stable-3b80552e70573764bbf38b89c58749aef9dd8753.tar.bz2 linux-stable-3b80552e70573764bbf38b89c58749aef9dd8753.zip |
bcachefs: __wait_for_freeing_inode: Switch to wait_bit_queue_entry
inode_bit_waitqueue() is changing - this update clears the way for
sched changes.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index e9e32d21f82d..857175f4bbbe 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -278,7 +278,8 @@ static void __wait_on_freeing_inode(struct bch_fs *c, subvol_inum inum) { wait_queue_head_t *wq; - DEFINE_WAIT_BIT(wait, &inode->v.i_state, __I_NEW); + struct wait_bit_queue_entry wait; + wq = inode_bit_waitqueue(&wait, &inode->v, __I_NEW); prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); spin_unlock(&inode->v.i_lock); |