On 2020/11/24 19:52, Christoph Hellwig wrote: > On Tue, Nov 24, 2020 at 06:45:31PM +0800, Zhen Lei wrote: >> krealloc() does the free operation when the parameter new_size is 0, with >> ZERO_SIZE_PTR returned. Because all other places use NULL to check whether >> if_data is available or not, so covert it from ZERO_SIZE_PTR to NULL. > > This new code looks much harder to read than the version it replaced. OK > >
- [PATCH 0/2] xfs: check krealloc() return value and s... Zhen Lei
- [PATCH 1/2] xfs: check the return value of krea... Zhen Lei
- Re: [PATCH 1/2] xfs: check the return value... Christoph Hellwig
- Re: [PATCH 1/2] xfs: check the return v... Leizhen (ThunderTown)
- [PATCH 2/2] xfs: remove the extra processing of... Zhen Lei
- Re: [PATCH 2/2] xfs: remove the extra proce... Christoph Hellwig
- Re: [PATCH 2/2] xfs: remove the extra p... Leizhen (ThunderTown)