Commit 3b80552e authored by Kent Overstreet's avatar Kent Overstreet

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a7e2dd58
...@@ -278,7 +278,8 @@ static void __wait_on_freeing_inode(struct bch_fs *c, ...@@ -278,7 +278,8 @@ static void __wait_on_freeing_inode(struct bch_fs *c,
subvol_inum inum) subvol_inum inum)
{ {
wait_queue_head_t *wq; 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); wq = inode_bit_waitqueue(&wait, &inode->v, __I_NEW);
prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE);
spin_unlock(&inode->v.i_lock); spin_unlock(&inode->v.i_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment