]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlbfs: fix inaccurate comment in hugetlbfs_statfs()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 26 Jul 2022 14:29:18 +0000 (22:29 +0800)
committerakpm <akpm@linux-foundation.org>
Sat, 30 Jul 2022 01:07:19 +0000 (18:07 -0700)
commit21e68a36fd9fb15baab751eda826a78a661cf479
treefe413772b0f1ece665ba0619b410d0a533105ff9
parent8f6f8b5c0bd2d774d08d14162a4f3dd8ce0b305b
hugetlbfs: fix inaccurate comment in hugetlbfs_statfs()

In some cases, e.g.  when size option is not specified, f_blocks, f_bavail
and f_bfree will be set to -1 instead of 0.  Likewise, when nr_inodes
isn't specified, f_files and f_ffree will be set to -1 too.  Update the
comment to make this clear.

Link: https://lkml.kernel.org/r/20220726142918.51693-6-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/hugetlbfs/inode.c