Skip to content

Commit

Permalink
ufs: remove unessecary blk_flush_plug
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Apr 5, 2011
1 parent 53d63e6 commit ee3dea3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ufs/truncate.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ int ufs_truncate(struct inode *inode, loff_t old_i_size)
break;
if (IS_SYNC(inode) && (inode->i_state & I_DIRTY))
ufs_sync_inode (inode);
blk_flush_plug(current);
yield();
}

Expand Down

0 comments on commit ee3dea3

Please sign in to comment.