Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1480658

Re: [PATCH] Btrfs: remove unnecessary code of chunk_root assignment in btrfs_read_chunk_tree.

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Sean Fu <fxinrong@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Btrfs: remove unnecessary code of chunk_root assignment in btrfs_read_chunk_tree.
Date Sat, 10 Sep 2016 18:00:02 +0200
Message-ID <sfSRc-252-15@gated-at.bofh.it> (permalink)
References <sdQJP-5ac-5@gated-at.bofh.it> <sdQJP-5ac-3@gated-at.bofh.it> <sdWYW-N5-19@gated-at.bofh.it> <seeVQ-4Da-1@gated-at.bofh.it> <sefoR-4Nx-7@gated-at.bofh.it> <selui-En-23@gated-at.bofh.it> <seqkh-3Gd-7@gated-at.bofh.it> <sfkmt-5X1-3@gated-at.bofh.it> <sfkFP-62G-1@gated-at.bofh.it>
X-Original-To Jeff Mahoney <jeffm@suse.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=02HNtT+1BLgciMi/RpZauv1g0k8bDPr241Vhut1CyYE=; b=Hbeyk8rRajIZLG/95InlOQzM/aM84hZt1N0cAsZg8v2CZPBh2yAboUrBrmzYLtJMpZ 25rgyC1UTdb26vsJmAspyDPV3rEcAdft1ysvi3c+P6/DKKrJg/+CQgHGY56FlKXpfaBj OTh2XmTBlFqgQQWMFw4z9khnzCIKAVaQ2HVWqHeJ4vUiJur8Carla0gj7yL5Pw8GIaHo ez5DasIPCMNaPDAIk4bJ8b9FNB7Zk6IbwezyDrjwL3CSFPbL79cnEtYhMMnBzsPcozT4 Ui6Y3lP2gqGuoVmsKWF9WFyOiR9vkfXkUqLdkuQutUnkEHubdF1ED7n0ZynoN6bYLiW0 kOCA==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=02HNtT+1BLgciMi/RpZauv1g0k8bDPr241Vhut1CyYE=; b=I+HJvY603gUn9LFwwcSkC4HZ43Mpq2GWlVQ/hwYB5B75DWXfXMx8r1wdQYnlUtF+u4 T87idyr4gEwQ1FweXLDaGlv7fSddFviZlAFEJfhsmA/mmPXbWsrIthExY5b0VpQmip1V SUmVUva6Hs4YN7pi6UPLFXPe6UTW8f/pN50UCzVTQmFYeqrgGyD4t8upb+qhApfcfVDW lSBjtL5DkUAL6l6YIYzqZiHawOZKVkotoOjNEWU6XdfyjhnutX8EZBk1C2H6uhLVOoHU F3NM/KhyacZ5VsM2WbDTiYW38gXQM635FiNXxzLGPxCVN8iGlsVjCnke4D2OeIG0+TEF ZMJA==
X-Gm-Message-State AE9vXwMIzMQFkbrOGMl9AhY81h4/HR8h2k2o9eX8KZ81bGvT71dQK/jKBN0XbOD4Xbr6rA==
X-Received by 10.66.197.131 with SMTP id iu3mr16854497pac.97.1473523091816; Sat, 10 Sep 2016 08:58:11 -0700 (PDT)
Mail-Followup-To Jeff Mahoney <jeffm@suse.com>, dsterba@suse.cz, Qu Wenruo <quwenruo@cn.fujitsu.com>, Zhao Lei <zhaolei@cn.fujitsu.com>, clm@fb.com, anand.jain@oracle.com, Filipe Manana <FdManana@suse.com>, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.24 (2015-08-30)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 67
Organization linux.* mail to news gateway
X-Original-Cc dsterba@suse.cz, Qu Wenruo <quwenruo@cn.fujitsu.com>, Zhao Lei <zhaolei@cn.fujitsu.com>, clm@fb.com, anand.jain@oracle.com, Filipe Manana <FdManana@suse.com>, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org
X-Original-Date Sat, 10 Sep 2016 23:58:05 +0800
X-Original-Message-ID <20160910155804.GB5659@linux-zmni.DHCP>
X-Original-References <1472990010-10707-1-git-send-email-fxinrong@gmail.com> <002501d20713$7ee67050$7cb350f0$@cn.fujitsu.com> <e48353fc-cd00-789c-291e-80c684afe2e2@cn.fujitsu.com> <57CE326C.8000105@suse.com> <57CE3464.7090107@suse.com> <20160906095858.GA16983@suse.cz> <61eeb5da-c537-2392-74e4-eac77eda6264@suse.com> <20160909030836.GA15304@linux-zmni.apac.novell.com> <e1d0adbb-922d-0778-a59d-6e6922c2ab68@suse.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1480658

Show key headers only | View raw


On Thu, Sep 08, 2016 at 11:25:48PM -0400, Jeff Mahoney wrote:
> On 9/8/16 11:08 PM, Sean Fu wrote:
> > On Tue, Sep 06, 2016 at 11:12:20AM -0400, Jeff Mahoney wrote:
> >> On 9/6/16 5:58 AM, David Sterba wrote:
> >>> On Mon, Sep 05, 2016 at 11:13:40PM -0400, Jeff Mahoney wrote:
> >>>>>> Since root is only used to get fs_info->chunk_root, why not use fs_info
> >>>>>> directly?
> >>>>>
> >>>>> Weird.  Exactly this was a part of my fs_info patchset.  I guess I need
> >>>>> to go back and check what else is missing.
> >>>>
> >>>> Actually, most of this didn't land.  Pretty much anything that's a root
> >>>> ->fs_info conversion is in there.
> >>>
> >>> Only half of the patchset has been merged so far because it did not pass
> >>> testing, so I bisected to some point. I was about to let you know once
> >>> most of 4.9 patches are prepared so there are less merge conflicts.
> >>
> >> Ok, thanks.  I was going to start the rebase today but I'll hold off
> >> until you're set for 4.9.
> >>
> > Hi Jeff, Could you please share your patch? Where can i get it?
> > I wanna have a look at it.
> 
> Sure, it's the whole series that starts with this commit:
> commit 160ceedfd40085cfb1e08305917fcc24cefdad93
> Author: Jeff Mahoney <jeffm@suse.com>
> Date:   Wed Aug 31 23:55:33 2016 -0400
> 
>     btrfs: add dynamic debug support
> 
> ... I still need to do clean up some commits that need merging.
> 
> https://git.kernel.org/cgit/linux/kernel/git/jeffm/linux-btrfs.git/log/?h=btrfs-testing/kdave/misc-4.9/root-fsinfo-cleanup
> 
Nice work. Thanks for your explaination.
I have one more question about it.
Although the total text size of this function is not changed, using
fs_info should need one more instruction to get chunk_root field of
fs_info than using chunk_root directly.
Does it cause any performance impact?

Sean
> -Jeff
> 
> 
> > Thanks
> >> -Jeff
> >>
> >> -- 
> >> Jeff Mahoney
> >> SUSE Labs
> >>
> > 
> > 
> > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 
> 
> 
> -- 
> Jeff Mahoney
> SUSE Labs
> 

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] Btrfs: remove unnecessary code of chunk_root assignment  in btrfs_read_chunk_tree. Sean Fu <fxinrong@gmail.com> - 2016-09-10 18:00 +0200
  Re: [PATCH] Btrfs: remove unnecessary code of chunk_root assignment  in btrfs_read_chunk_tree. Jeff Mahoney <jeffm@suse.com> - 2016-09-10 18:10 +0200

csiph-web