]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlbfs: remove unneeded return value of hugetlb_vmtruncate()
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 24 Feb 2021 20:10:25 +0000 (12:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:35 +0000 (13:38 -0800)
commit89490c5ca420f736d942e824e6b6adc22e8c5dba
tree6e3027cfefce1de3f579bd1c38c74ecd0e12d059
parent9ae1c9d7e50e857b0bc80abff4e151aef7aee1f3
hugetlbfs: remove unneeded return value of hugetlb_vmtruncate()

The function hugetlb_vmtruncate() is guaranteed to always success since
commit 94314249a370 ("hugetlb: allow extending ftruncate on hugetlbfs").
So we should remove the unneeded return value which is always 0.

Link: https://lkml.kernel.org/r/20210208084637.47789-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hugetlbfs/inode.c