aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-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 5c4161f1fd9a..ea8592b90696 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -409,11 +409,11 @@ static void inode_wait_for_writeback(struct inode *inode)
409 wait_queue_head_t *wqh; 409 wait_queue_head_t *wqh;
410 410
411 wqh = bit_waitqueue(&inode->i_state, __I_SYNC); 411 wqh = bit_waitqueue(&inode->i_state, __I_SYNC);
412 do { 412 while (inode->i_state & I_SYNC) {
413 spin_unlock(&inode_lock); 413 spin_unlock(&inode_lock);
414 __wait_on_bit(wqh, &wq, inode_wait, TASK_UNINTERRUPTIBLE); 414 __wait_on_bit(wqh, &wq, inode_wait, TASK_UNINTERRUPTIBLE);
415 spin_lock(&inode_lock); 415 spin_lock(&inode_lock);
416 } while (inode->i_state & I_SYNC); 416 }
417} 417}
418 418
419/* 419/*