Re: [PATCH] hugetlbfs: initialize shared policy as part of inode allocation

2017-03-25 Thread Mike Kravetz
On 03/24/2017 05:54 PM, Tetsuo Handa wrote: > Mike Kravetz wrote: >> Any time after inode allocation, destroy_inode can be called. The >> hugetlbfs inode contains a shared_policy structure, and >> mpol_free_shared_policy is unconditionally called as part of >> hugetlbfs_destroy_inode. Initialize

Re: [PATCH] hugetlbfs: initialize shared policy as part of inode allocation

2017-03-24 Thread Tetsuo Handa
Mike Kravetz wrote: > Any time after inode allocation, destroy_inode can be called. The > hugetlbfs inode contains a shared_policy structure, and > mpol_free_shared_policy is unconditionally called as part of > hugetlbfs_destroy_inode. Initialize the policy as part of inode > allocation so that a

[PATCH] hugetlbfs: initialize shared policy as part of inode allocation

2017-03-24 Thread Mike Kravetz
Any time after inode allocation, destroy_inode can be called. The hugetlbfs inode contains a shared_policy structure, and mpol_free_shared_policy is unconditionally called as part of hugetlbfs_destroy_inode. Initialize the policy as part of inode allocation so that any quick (error path) calls to