Re: [PATCH] hugetlbfs: Remove unneeded return value of hugetlb_vmtruncate()

2021-02-12 Thread David Hildenbrand
On 08.02.21 09:46, Miaohe Lin wrote: The function hugetlb_vmtruncate() is guaranteed to always success since commit 7aa91e104028 ("hugetlb: allow extending ftruncate on hugetlbfs"). So we should remove the unneeded return value which is always 0. Signed-off-by: Miaohe Lin --- fs/hugetlbfs/ino

Re: [PATCH] hugetlbfs: Remove unneeded return value of hugetlb_vmtruncate()

2021-02-08 Thread Mike Kravetz
On 2/8/21 12:46 AM, Miaohe Lin wrote: > The function hugetlb_vmtruncate() is guaranteed to always success since > commit 7aa91e104028 ("hugetlb: allow extending ftruncate on hugetlbfs"). > So we should remove the unneeded return value which is always 0. > > Signed-off-by: Miaohe Lin > --- > fs/h

[PATCH] hugetlbfs: Remove unneeded return value of hugetlb_vmtruncate()

2021-02-08 Thread Miaohe Lin
The function hugetlb_vmtruncate() is guaranteed to always success since commit 7aa91e104028 ("hugetlb: allow extending ftruncate on hugetlbfs"). So we should remove the unneeded return value which is always 0. Signed-off-by: Miaohe Lin --- fs/hugetlbfs/inode.c | 7 ++- 1 file changed, 2 inse