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

2017-03-26 Thread Hillf Danton
On March 26, 2017 5:38 AM 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 o

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

2017-03-25 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