Skip to content

Commit 3b80552

Browse files
author
Kent Overstreet
committed
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 <[email protected]>
1 parent a7e2dd5 commit 3b80552

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/bcachefs/fs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ static void __wait_on_freeing_inode(struct bch_fs *c,
278278
subvol_inum inum)
279279
{
280280
wait_queue_head_t *wq;
281-
DEFINE_WAIT_BIT(wait, &inode->v.i_state, __I_NEW);
281+
struct wait_bit_queue_entry wait;
282+
282283
wq = inode_bit_waitqueue(&wait, &inode->v, __I_NEW);
283284
prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE);
284285
spin_unlock(&inode->v.i_lock);

0 commit comments

Comments
 (0)