xfs
[Top] [All Lists]

Re: [PATCH v2] xfs: indentation fix in xfs_btree_get_iroot()

To: Dave Chinner <david@xxxxxxxxxxxxx>, Kaho Ng <ngkaho1234@xxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>, cmaiolino@xxxxxxxxxx
Subject: Re: [PATCH v2] xfs: indentation fix in xfs_btree_get_iroot()
From: Kaho Ng <ngkaho1234@xxxxxxxxx>
Date: Wed, 22 Jun 2016 18:30:55 +0800
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=//zVeauuaUtDrjf92Jfx2QgPbdXSosh8h0hkI231uuo=; b=DrIWvaiFYX7CVi3jWOblPeHXQ81NzGRhiShlG+L/MMnSTr09h95twfKy3IJW4tPvxl 20EA8o1r4zVtFPi3Te+F/IlPa83OeaG5y2kF3MV4BONi0xHGiHIXQ7mX8OotlZRIUgwa EhSMYZ5xe2khQtskILt2e7upy+nBqjAxF6v3POvsrtf2bTVN3dRYYfy1hIdu33GCrY+7 7OFA9IIKmoQzcfnBnqtdRYtXx1+bu0cxsPkFN1Fa/95GJCeHlFzik0WrhEUVpovW/FN4 yaDKi2FRylFY2OE9zh0bfByNmoBPzK2TVrTU24myUoRnVwI6BGFFfCqye6yTYrjWel2e 79pw==
In-reply-to: <20160622082332.GH28212@xxxxxxxxxx>
References: <1466568697.14061.1.camel@xxxxxxxxx> <20160622063943.GU12670@dastard> <20160622082332.GH28212@xxxxxxxxxx>
Thanks for the suggestion. I am going to tidy up the things and resend it.

2016-06-22 16:23 GMT+08:00 Carlos Maiolino <cmaiolino@xxxxxxxxxx>:
> On Wed, Jun 22, 2016 at 04:39:43PM +1000, Dave Chinner wrote:
>> On Wed, Jun 22, 2016 at 12:11:37PM +0800, Kaho Ng wrote:
>> > The indentation in this function is different from the other functions.
>> > Those spacebars are converted to tabs to improve readability.
>> >
>> > Signed-off-by: Kaho Ng <ngkaho1234@xxxxxxxxx>
>> > ---
>> >  fs/xfs/libxfs/xfs_btree.c | 8 ++++----
>> >  1 file changed, 4 insertions(+), 4 deletions(-)
>> >
>> > diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c
>> > index 1f88e1c..4f84dde 100644
>> > --- a/fs/xfs/libxfs/xfs_btree.c
>> > +++ b/fs/xfs/libxfs/xfs_btree.c
>> > @@ -543,12 +543,12 @@ xfs_btree_ptr_addr(
>> >   */
>> >  STATIC struct xfs_btree_block *
>> >  xfs_btree_get_iroot(
>> > -       struct xfs_btree_cur    *cur)
>> > +   struct xfs_btree_cur    *cur)
>> >  {
>> > -       struct xfs_ifork        *ifp;
>> > +   struct xfs_ifork        *ifp;
>> >
>> > -       ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, cur-
>> > >bc_private.b.whichfork);
>> > -       return (struct xfs_btree_block *)ifp->if_broot;
>> > +   ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, cur-
>> > >bc_private.b.whichfork);
>> > +   return (struct xfs_btree_block *)ifp->if_broot;
>> >  }
>>
>> That's better, but your mailer is still doing weird things to the
>> patch. It line wrapped it this time, and converted all the spaces to
>> some wierd multi-byte character instead of a plain ascii space.
>>
>> What you should do is send the patch to yourself, extract it from
>> the email you receive, and try to apply it to a clean tree. If you
>> can do that, then the patch is not getting mangled when you send it.
>> See Documentation/SubmittingPatches and
>> Documentation/email-clients.txt for help.
>>
>
> This is a problem when sending patches from a gmail account. It's converted 
> to a
> base64 format, instead of pure clean text.
>
> I'd setup git to send the patch through the gmail smtp using git send-email. 
> So
> it won't screw up with the file format. Well, at least, that's what I do when 
> I
> need to send patches through a gmail account :)
>
> --
> Carlos

<Prev in Thread] Current Thread [Next in Thread>