Re: [PATCH 0/4 V2] Remove a few macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/7/18 1:05 AM, Carlos Maiolino wrote:
> Hi,
> 
> this is a second version of the patchset aimed to clean up some old macros from
> xfsprogs, as the objective to bring xfs_buf handling code closer to kernel code.
> 
> It fixes some pointer castings Dave mentioned on the V1 patch, also, it removes
> a few unneeded castings I spotted while reviewing the ones Dave mentioned.
> 
> Cheers

Ok, I'll take this, with the explicit char * casts (seems to be the popular
vote, and TBH I guess I prefer the explicit nature of that approach).

There are a couple of extra ones now in your first patch though,
i.e.

ptr = (char *)bp->b_addr;

is not needed.

I fixed up minor conflicts, no need to resend.

-Eric
 
> Carlos Maiolino (4):
>   Get rid of XFS_BUF_PTR() macro
>   Get rid of XFS_BUF_TARGET() macro
>   get rid of XFS_BUF_COUNT() macro
>   Get rid of XFS_BUF_SET_COUNT() macro
> 
>  libxfs/libxfs_io.h        |  6 +-----
>  libxfs/logitem.c          |  2 +-
>  libxfs/rdwr.c             | 10 +++++-----
>  libxfs/trans.c            |  2 +-
>  libxlog/xfs_log_recover.c |  2 +-
>  logprint/log_print_all.c  |  4 ++--
>  mkfs/proto.c              |  8 ++++----
>  mkfs/xfs_mkfs.c           | 14 +++++++-------
>  repair/agheader.c         |  8 ++++----
>  repair/attr_repair.c      |  4 ++--
>  repair/dino_chunks.c      |  2 +-
>  repair/phase6.c           |  4 ++--
>  repair/prefetch.c         |  4 ++--
>  13 files changed, 33 insertions(+), 37 deletions(-)
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux