From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: [PATCH 11/15] fat: do not send discards as barriers Date: Wed, 18 Aug 2010 05:29:19 -0400 Message-ID: <20100818093501.788554331@bombadil.infradead.org> References: <20100818093432.646633424@bombadil.infradead.org> Cc: chris.mason@oracle.com, swhiteho@redhat.com, konishi.ryusuke@lab.ntt.co.jp, tytso@mit.edu, jack@suse.cz, hirofumi@mail.parknet.co.jp, mfasheh@suse.com, joel.becker@oracle.com, hughd@google.com, linux-fsdevel@vger.kernel.org To: tj@kernel.org Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:48820 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752580Ab0HRJfe (ORCPT ); Wed, 18 Aug 2010 05:35:34 -0400 Content-Disposition: inline; filename=fat-discard-nobarrier Sender: linux-fsdevel-owner@vger.kernel.org List-ID: fat already uses synchronous discards, no need to add I/O barriers. Signed-off-by: Christoph Hellwig Index: linux-2.6/fs/fat/fatent.c =================================================================== --- linux-2.6.orig/fs/fat/fatent.c 2010-08-17 16:49:12.976253898 +0200 +++ linux-2.6/fs/fat/fatent.c 2010-08-17 16:49:17.378285050 +0200 @@ -579,7 +579,7 @@ int fat_free_clusters(struct inode *inod fat_clus_to_blknr(sbi, first_cl), nr_clus * sbi->sec_per_clus, GFP_NOFS, - BLKDEV_IFL_WAIT | BLKDEV_IFL_BARRIER); + BLKDEV_IFL_WAIT); first_cl = cluster; }