From patchwork Mon Jul 11 18:25:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 104265 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 52633B6F7C for ; Tue, 12 Jul 2011 04:26:06 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758067Ab1GKS0E (ORCPT ); Mon, 11 Jul 2011 14:26:04 -0400 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:47035 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757032Ab1GKS0D (ORCPT ); Mon, 11 Jul 2011 14:26:03 -0400 Received: from hch by bombadil.infradead.org with local (Exim 4.76 #1 (Red Hat Linux)) id 1QgLB9-00048r-2H; Mon, 11 Jul 2011 18:25:59 +0000 Date: Mon, 11 Jul 2011 14:25:59 -0400 From: Christoph Hellwig To: viro@zeniv.linux.org.uk Cc: jeffm@suse.com, chris.mason@oracle.com, jack@suse.cz, reiserfs-devel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 1/2] ext3: make ext3 mount default to barrier=1 Message-ID: <20110711182558.GB12099@infradead.org> References: <20110711182532.GA12099@infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110711182532.GA12099@infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Chris Mason This patch turns on barriers by default for ext3. mount -o barrier=0 will turn them off. Acked-by: Jeff Mahoney Acked-by: Jan Kara Acked-by: Eric Sandeen --- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/fs/ext3/super.c =================================================================== --- linux-2.6.orig/fs/ext3/super.c 2011-06-30 21:19:37.389544975 +0200 +++ linux-2.6/fs/ext3/super.c 2011-07-02 13:56:51.877784292 +0200 @@ -1718,6 +1718,8 @@ static int ext3_fill_super (struct super sbi->s_resuid = le16_to_cpu(es->s_def_resuid); sbi->s_resgid = le16_to_cpu(es->s_def_resgid); + /* enable barriers by default */ + set_opt(sbi->s_mount_opt, BARRIER); set_opt(sbi->s_mount_opt, RESERVATION); if (!parse_options ((char *) data, sb, &journal_inum, &journal_devnum,