Skip to content

Commit 445c809

Browse files
MiaoheLinakpm00
authored andcommitted
hugetlbfs: cleanup some comments in inode.c
The function generic_file_buffered_read has been renamed to filemap_read since commit 87fa0f3 ("mm/filemap: rename generic_file_buffered_read to filemap_read"). Update the corresponding comment. And duplicated taken in hugetlbfs_fill_super is removed. Link: https://lkml.kernel.org/r/20220726142918.51693-5-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>
1 parent 990e52b commit 445c809

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/hugetlbfs/inode.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,7 @@ hugetlbfs_read_actor(struct page *page, unsigned long offset,
323323

324324
/*
325325
* Support for read() - Find the page attached to f_mapping and copy out the
326-
* data. Its *very* similar to generic_file_buffered_read(), we can't use that
327-
* since it has PAGE_SIZE assumptions.
326+
* data. This provides functionality similar to filemap_read().
328327
*/
329328
static ssize_t hugetlbfs_read_iter(struct kiocb *iocb, struct iov_iter *to)
330329
{
@@ -1394,7 +1393,7 @@ hugetlbfs_fill_super(struct super_block *sb, struct fs_context *fc)
13941393
/*
13951394
* Allocate and initialize subpool if maximum or minimum size is
13961395
* specified. Any needed reservations (for minimum size) are taken
1397-
* taken when the subpool is created.
1396+
* when the subpool is created.
13981397
*/
13991398
if (ctx->max_hpages != -1 || ctx->min_hpages != -1) {
14001399
sbinfo->spool = hugepage_new_subpool(ctx->hstate,

0 commit comments

Comments
 (0)