Commit bace9248 authored by Tahsin Erdogan's avatar Tahsin Erdogan Committed by Linus Torvalds

fs/fs-writeback.c: remove redundant if check

b_more_io non-empty check is already preceded by an opposite check.

Link: http://lkml.kernel.org/r/1478591249-30641-1-git-send-email-tahsin@google.comSigned-off-by: default avatarTahsin Erdogan <tahsin@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c70b647d
...@@ -1769,15 +1769,13 @@ static long wb_writeback(struct bdi_writeback *wb, ...@@ -1769,15 +1769,13 @@ static long wb_writeback(struct bdi_writeback *wb,
* become available for writeback. Otherwise * become available for writeback. Otherwise
* we'll just busyloop. * we'll just busyloop.
*/ */
if (!list_empty(&wb->b_more_io)) { trace_writeback_wait(wb, work);
trace_writeback_wait(wb, work); inode = wb_inode(wb->b_more_io.prev);
inode = wb_inode(wb->b_more_io.prev); spin_lock(&inode->i_lock);
spin_lock(&inode->i_lock); spin_unlock(&wb->list_lock);
spin_unlock(&wb->list_lock); /* This function drops i_lock... */
/* This function drops i_lock... */ inode_sleep_on_writeback(inode);
inode_sleep_on_writeback(inode); spin_lock(&wb->list_lock);
spin_lock(&wb->list_lock);
}
} }
spin_unlock(&wb->list_lock); spin_unlock(&wb->list_lock);
blk_finish_plug(&plug); blk_finish_plug(&plug);
......
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