Re: [PATCH v2] kernfs: Allocating memory for kernfs_iattrs with kmem_cache.

2019-02-06 Thread Tejun Heo
On Wed, Feb 06, 2019 at 10:25:42AM +0530, Ayush Mittal wrote: > Creating a new cache for kernfs_iattrs. > Currently, memory is allocated with kzalloc() which > always gives aligned memory. On ARM, this is 64 byte aligned. > To avoid the wastage of memory in aligning the size requested, > a new cach

[PATCH v2] kernfs: Allocating memory for kernfs_iattrs with kmem_cache.

2019-02-05 Thread Ayush Mittal
Creating a new cache for kernfs_iattrs. Currently, memory is allocated with kzalloc() which always gives aligned memory. On ARM, this is 64 byte aligned. To avoid the wastage of memory in aligning the size requested, a new cache for kernfs_iattrs is created. Size of struct kernfs_iattrs is 80 Byte