summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-07-26 22:29:18 +0800
committerakpm <akpm@linux-foundation.org>2022-07-29 18:07:19 -0700
commit116807634569bdb9defe1c01e442e76e4f432961 (patch)
treefe413772b0f1ece665ba0619b410d0a533105ff9 /mm
parent445c809829dc164c5b1917c72e335bd294aa4dc8 (diff)
downloadlinux-stable-116807634569bdb9defe1c01e442e76e4f432961.tar.gz
linux-stable-116807634569bdb9defe1c01e442e76e4f432961.tar.bz2
linux-stable-116807634569bdb9defe1c01e442e76e4f432961.zip
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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions