[Top] [All Lists]

Re: [PATCH] xfs: remove unused transaction pointer args

To: Brian Foster <bfoster@xxxxxxxxxx>
Subject: Re: [PATCH] xfs: remove unused transaction pointer args
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Thu, 03 Apr 2014 16:19:37 -0600
Cc: xfs-oss <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20140331130932.GA63718@xxxxxxxxxxxxxxx>
References: <53362976.3060101@xxxxxxxxxxx> <20140331130932.GA63718@xxxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
On 3/31/14, 7:09 AM, Brian Foster wrote:
> On Fri, Mar 28, 2014 at 09:01:26PM -0500, Eric Sandeen wrote:
>> Several functions pass a transaction pointer around,
>> but it's never used in those callchains.  Remove it.
>> Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
>> ---
>> diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
>> index 152543c..b308097 100644
>> --- a/fs/xfs/xfs_bmap.c
>> +++ b/fs/xfs/xfs_bmap.c
>> @@ -1675,7 +1675,6 @@ xfs_bmap_isaeof(
>>   */
>>  int
>>  xfs_bmap_last_offset(
>> -    struct xfs_trans        *tp,
>>      struct xfs_inode        *ip,
>>      xfs_fileoff_t           *last_block,
>>      int                     whichfork)
> Seems Ok to me, but it looks like you could also kill the tp param for
> xfs_bmap_last_extent(). I don't see any callers that don't pass NULL...
> Brian

Actually I think that'd be a separate change, and not totally obvious
that it's one we should make - I'm (lazily) not sure if someone might
need to pass in a tp to be used in xfs_iread_extents() some time
in the future...


<Prev in Thread] Current Thread [Next in Thread>
  • Re: [PATCH] xfs: remove unused transaction pointer args, Eric Sandeen <=