Re: [PATCH] xfs: Use kmem_zalloc for bp->b_pages.

2019-03-10 Thread Dave Chinner
On Sun, Mar 10, 2019 at 01:07:32PM +0800, Sean Fu wrote: > On Sat, Mar 09, 2019 at 09:32:30AM -0800, Darrick J. Wong wrote: > > On Sat, Mar 09, 2019 at 11:36:36PM +0800, Sean Fu wrote: > > > Change the allocation of bp->b_pages to use kmem_zalloc instead of > > > kmem_alloc. > > > Remove

Re: [PATCH] xfs: Use kmem_zalloc for bp->b_pages.

2019-03-09 Thread Sean Fu
On Sat, Mar 09, 2019 at 09:32:30AM -0800, Darrick J. Wong wrote: > On Sat, Mar 09, 2019 at 11:36:36PM +0800, Sean Fu wrote: > > Change the allocation of bp->b_pages to use kmem_zalloc instead of > > kmem_alloc. > > Remove unnecessary memset for bp->b_pages. > > > > This reduces text size by 42

Re: [PATCH] xfs: Use kmem_zalloc for bp->b_pages.

2019-03-09 Thread Darrick J. Wong
On Sat, Mar 09, 2019 at 11:36:36PM +0800, Sean Fu wrote: > Change the allocation of bp->b_pages to use kmem_zalloc instead of > kmem_alloc. > Remove unnecessary memset for bp->b_pages. > > This reduces text size by 42 bytes. > Before: >text data bss dec hex filename >

[PATCH] xfs: Use kmem_zalloc for bp->b_pages.

2019-03-09 Thread Sean Fu
Change the allocation of bp->b_pages to use kmem_zalloc instead of kmem_alloc. Remove unnecessary memset for bp->b_pages. This reduces text size by 42 bytes. Before: textdata bss dec hex filename 23335 588 8 239315d7b ./fs/xfs/xfs_buf.o After: textdata