ufs: remove unessecary blk_flush_plug
PATCH 1/1 ufs: remove unessecary blk_flush_plug
We already flush the per-process plugging list when context switching, so a blk_flush_plug call just before a yield() is not needed.
Signed-off-by Christoph Hellwig <[email protected]>
fs/ufs/truncate.c +0 -1
@@ -479,7 +479,6 @@ int ufs_truncate(struct inode *inode, lobreak ;if (IS_SYNC (inode) && (inode->i_state &I_DIRTY ))ufs_sync_inode (inode); -blk_flush_plug (current);yield (); }
Quoted 10 lines · Christoph Hellwig
We already flush the per-process plugging list when context switching, so a
blk_flush_plugcall just before ayield()is not needed.Signed-off-by Christoph Hellwig <[email protected]>Index:
xfs/fs/ufs/truncate.c
===================================================================
fs/ufs/truncate.c int ufs_truncate(struct inode *inode, lo · line 483
Quoted 6 lines
fs/ufs/truncate.c +0
-1@@ -479,7 +479,6 @@ int ufs_truncate(struct inode *inode, lobreak ;if (IS_SYNC (inode) && (inode->i_state &I_DIRTY ))ufs_sync_inode (inode); -blk_flush_plug (current);yield (); }
Added for .39 merge, thanks.
Signature · 1 line
Jens Axboe