xfs
[Top] [All Lists]

Re: [PATCH] refactor xfs_mountfs for clarity & stack savings

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: [PATCH] refactor xfs_mountfs for clarity & stack savings
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Tue, 28 Aug 2007 15:24:39 -0500
Cc: xfs-oss <xfs@xxxxxxxxxxx>
In-reply-to: <20070828195221.GA7237@xxxxxxxxxxxxx>
References: <46D37A82.2080608@xxxxxxxxxxx> <20070828195221.GA7237@xxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (X11/20070530)
Christoph Hellwig wrote:
> Looks goo to me except for a tiny nitpick:
> 
>> Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx
>> +            if ((error = xfs_readsb(mp, mfsi_flags))) {
>> +                    return error;
>> +            }
> 
>> +    if ((error = xfs_update_alignment(mp, mfsi_flags, &update_flags)))
>> +            goto error1;
> 
>> +    if ((error = xfs_check_sizes(mp, mfsi_flags)))
>> +            goto error1;
> 
>>      if ((error = xfs_rtmount_init(mp))) {
> 
> Please make sure the assignment and conditional are on separate lines
> for all of these once you're cleaning up this function.  In the first
> case there's also some braces to remove.
> 

yeah, good point.  That was just cut & pasting what was already there...

-Eric


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