From: Christoph Hellwig Date: Wed, 30 Mar 2011 10:17:43 +0000 (+0200) Subject: ufs: remove unessecary blk_flush_plug X-Git-Tag: v2.6.39-rc2~1^2~6 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=ee3dea3549444e6e76d27af48b4929983e6f023c;p=~emulex%2Finfiniband.git 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 Signed-off-by: Jens Axboe --- diff --git a/fs/ufs/truncate.c b/fs/ufs/truncate.c index 11014302c9c..5f821dbc057 100644 --- a/fs/ufs/truncate.c +++ b/fs/ufs/truncate.c @@ -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(); }