aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r--fs/fs-writeback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 408a7877b79d..1d1088f48bc2 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -398,11 +398,11 @@ static void inode_wait_for_writeback(struct inode *inode)
398 wait_queue_head_t *wqh; 398 wait_queue_head_t *wqh;
399 399
400 wqh = bit_waitqueue(&inode->i_state, __I_SYNC); 400 wqh = bit_waitqueue(&inode->i_state, __I_SYNC);
401 do { 401 while (inode->i_state & I_SYNC) {
402 spin_unlock(&inode_lock); 402 spin_unlock(&inode_lock);
403 __wait_on_bit(wqh, &wq, inode_wait, TASK_UNINTERRUPTIBLE); 403 __wait_on_bit(wqh, &wq, inode_wait, TASK_UNINTERRUPTIBLE);
404 spin_lock(&inode_lock); 404 spin_lock(&inode_lock);
405 } while (inode->i_state & I_SYNC); 405 }
406} 406}
407 407
408/* 408/*