Re: [PATCH] swapon: fix vfree() badness

2017-09-12 Thread Michal Hocko
On Tue 05-09-17 11:40:51, Dave Chinner wrote: > From: Dave Chinner > > The cluster_info structure is allocated with kvzalloc(), which can > return kmalloc'd or vmalloc'd memory. It must be paired with > kvfree(), but sys_swapon uses vfree(), resultin in this warning > from xfstests generic/357: >

Re: [PATCH] swapon: fix vfree() badness

2017-09-04 Thread Anshuman Khandual
On 09/05/2017 07:10 AM, Dave Chinner wrote: > From: Dave Chinner > > The cluster_info structure is allocated with kvzalloc(), which can > return kmalloc'd or vmalloc'd memory. It must be paired with > kvfree(), but sys_swapon uses vfree(), resultin in this warning > from xfstests generic/357: >

[PATCH] swapon: fix vfree() badness

2017-09-04 Thread Dave Chinner
From: Dave Chinner The cluster_info structure is allocated with kvzalloc(), which can return kmalloc'd or vmalloc'd memory. It must be paired with kvfree(), but sys_swapon uses vfree(), resultin in this warning from xfstests generic/357: [ 1985.294915] swapon: swapfile has holes [ 1985.296012] T