Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7980140ybn; Tue, 1 Oct 2019 00:59:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpejkoMiuK4qZdSu66+cZs4c1bX3FeAlEvJ/VhDfeVTQK+Rt2+iG7TjNtFRyOTDuqCezyl X-Received: by 2002:a17:906:3d62:: with SMTP id r2mr17878037ejf.108.1569916757687; Tue, 01 Oct 2019 00:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569916757; cv=none; d=google.com; s=arc-20160816; b=v3MxkvVB/knCy7djHN6dygNVnhubCJyQM8U92/5bUKzaVdjglku1sZk+Uf9jgtPUPi DgPy1YPwn5hfnD3oRkt2W4yIn3XDbiRDD1LH3K9HBZ8n6rzm/ZXW+q5JYrtB0GP3eYm3 JMNl96IdMaJR8rdwTNWoLhPGwUb2pjBiCVuRICglcsspoxPWuQygd3oQQfPubPDBR0VL qRTk6JtiLKUp488xSCB3vIZkWPW6NRUjLN65l2mbaOlzbAAmcxOs+VSKFW+i2s4vgjXL VhPrvO1l6fvb1Y8iHFaf4G95AwpyoZv9HGlSD732mzpvGJbEw3GE7/NUH0uU12DqcsmJ WVrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Srg4JOGn+asJMQx+sa1DferIgGtjxffvlXQRBP5U/dE=; b=yUnGSl5qaA2UFO3X5I+MHITy/VG1C//H7wuDkkGYUS1G2clLlpgB10YQsycSbBy0nf D6vfpFhmQRr7S7BAhKHwX+Fyf6XBDHfqoePUgB5j7VzhRm/h0ZWC1E3TKut/vVYmFOt8 WVmEkOWZ6CX/5QKtu+rzE9OLiH8wCTGg6Vt49/tl4uM5BaKM/I+qoLaODQE8FGuhnYug qLSU1BbV0mCgQsoTgb1SzFLjMJKaulpfuGPvKA9p5f4OzPW11EFTdR10K6wDXtbO9G/C PeTaeZNo9q0FtIUaKqc/rT/VcfOvEmCYzCs1nT7xJZHyLiAz6smC3WiUFmpQkYucBddU CwYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PFV6uHu+; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si8784753ede.131.2019.10.01.00.58.52; Tue, 01 Oct 2019 00:59:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PFV6uHu+; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730869AbfJAHvb (ORCPT + 99 others); Tue, 1 Oct 2019 03:51:31 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:40545 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729228AbfJAHvb (ORCPT ); Tue, 1 Oct 2019 03:51:31 -0400 Received: by mail-ot1-f65.google.com with SMTP id y39so10724637ota.7 for ; Tue, 01 Oct 2019 00:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Srg4JOGn+asJMQx+sa1DferIgGtjxffvlXQRBP5U/dE=; b=PFV6uHu+Hoh3o52anpAdqIW8NeQpOeyE8lh8y+h8FyuJfCVIZrlKRJD3pp8T3X4gDP nZrCFWrWF0NHBw4uXWHNpNRvHoFzM2slQUpArixHB0CT2BZP3B411J9pifEYh8ZzLZ1v xnRRQfPkRsqk7WIS29rLPrVwBDOv1OETGMZHLcQX19ux4OUEom1ZVqNWqtDpD0nVKf0F gUFO9mgWFAUar8FIhxlZ/noYLuFpzc+xDsC21eR0YpQ2OFrEkDOcJVOlV7ET+2FAQas2 ed1Y1R2v1M332OguWSGhAbWrgXIJEzlLoC3Qlw/oJkxP6+4ZEYLF3Qym0lIqNWNCdqac dAiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Srg4JOGn+asJMQx+sa1DferIgGtjxffvlXQRBP5U/dE=; b=hgMGvcMzMelFfq0aCAfmO2M4pF5f7mSLSsO6CFlEpufODEMtPgCkSKHVJrtR0MZUNB MY+w6rM15y50GzC2Fbj7QczazR5+XbM7HCv2Vt/wgZHo3dEixrZc4rgoilWjZPwEcDoB 46KUblB6Yy3n8pI460/a3g1az8dhCIgPEJnO3jMM6qJFMkx7b0GkRr6JCWc3eLeJziuj GrEUb0RR2EWPCMnv7Ys2rEiWUW5D0KjH8Ypg34KBslTdyKu6ppMOXzkYd9KV/iyKeRRT HtEtLalgiWmGPtcLN1zTWKCDdsFeKpMmn9Yb8SlM4vZxZt/erO6RKorhKJ1/xWB6iaZt KLYQ== X-Gm-Message-State: APjAAAWcPooL75IiSydmnlQcCs6x9Kdt9OiEb+wS/xYcRH96/2kv6cwA gducf6WJ1iszhkxPYzBW6X+J1+Q+rsXLpwFnrxs= X-Received: by 2002:a9d:7450:: with SMTP id p16mr16200058otk.141.1569916290523; Tue, 01 Oct 2019 00:51:30 -0700 (PDT) MIME-Version: 1.0 References: <20190809034552.148629-1-harshadshirwadkar@gmail.com> <20190809034552.148629-9-harshadshirwadkar@gmail.com> In-Reply-To: From: harshad shirwadkar Date: Tue, 1 Oct 2019 00:51:19 -0700 Message-ID: Subject: Re: [PATCH v2 08/12] ext4: track changed files for fast commit To: Andreas Dilger Cc: Ext4 Developers List Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Thanks, done in V3. On Fri, Aug 9, 2019 at 2:46 PM Andreas Dilger wrote: > > On Aug 8, 2019, at 9:45 PM, Harshad Shirwadkar wrote: > > > > For fast commit, we need to remember all the files that have changed > > since last fast commit / full commit. For changes that are fast commit > > incompatible, we mark the file system fast commit incompatible. This > > patch adds code to either remember files that have changed or to mark > > ext4 as fast commit ineligible. We inspect every ext4_mark_inode_dirty > > calls and decide whether that particular file change is fast > > compatible or not. > > > > Signed-off-by: Harshad Shirwadkar > > Some minor code style cleanups. > > > @@ -759,6 +761,8 @@ int ext4_write_inline_data_end(struct inode *inode, loff_t pos, unsigned len, > > > > ext4_write_unlock_xattr(inode, &no_expand); > > brelse(iloc.bh); > > + ext4_fc_enqueue_inode(ext4_journal_current_handle(), > > + inode); > > (style) "inode" doesn't need to be split to a separate line > > > mark_inode_dirty(inode); > > out: > > return copied; > > @@ -974,6 +978,8 @@ int ext4_da_write_inline_data_end(struct inode *inode, loff_t pos, > > * ordering of page lock and transaction start for journaling > > * filesystems. > > */ > > + ext4_fc_enqueue_inode(ext4_journal_current_handle(), > > + inode); > > (style) "inode" doesn't need to be split to a separate line > > > @@ -5697,6 +5719,8 @@ int ext4_setattr(struct dentry *dentry, struct iattr *attr) > > > > if (!error) { > > setattr_copy(inode, attr); > > + ext4_fc_enqueue_inode(ext4_journal_current_handle(), > > + inode); > > (style) "inode" doesn't need to be split to a separate line > > > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > > index 0b833e9b61c1..c7bb52bdaf6e 100644 > > --- a/fs/ext4/super.c > > +++ b/fs/ext4/super.c > > @@ -1129,6 +1129,16 @@ static void ext4_destroy_inode(struct inode *inode) > > true); > > dump_stack(); > > } > > + if (!list_empty(&(EXT4_I(inode)->i_fc_list))) { > > +#ifdef EXT4FS_DEBUG > > + if (EXT4_SB(inode->i_sb)->s_fc_eligible) { > > + pr_warn("%s: INODE %ld in FC List with FC allowd", > > + __func__, inode->i_ino); > > (style) this should use ext4fs_debug(), since pr_warn() is not really > used in the ext4 code > > > + dump_stack(); > > + } > > +#endif > > + ext4_fc_del(inode); > > + } > > } > > > Cheers, Andreas > > > > >