Commit f469ec9c5b95dfed60d5d628e1a8cecfc1f92d7a
Committed by
Fengguang Wu
1 parent
9f8050c4f9
fs: Remove bogus wait in write_inode_now()
inode_sync_wait() in write_inode_now() is just bogus. That function waits for I_SYNC bit to be cleared but writeback_single_inode() clears the bit on return so the wait is effectivelly a nop unless someone else submits the inode for writeback again. All the waiting write_inode_now() needs is achieved by using WB_SYNC_ALL writeback mode. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
fs/fs-writeback.c