mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 08:35:19 -05:00
mm/filemap: avoid type conversion
The return type of function folio_test_hugetlb is bool type, there is no need to assign it to an integer type. Link: https://lkml.kernel.org/r/20240108044815.3291487-1-lihongbo22@huawei.com Signed-off-by: Hongbo Li <lihongbo22@huawei.com> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
9eda317c15
commit
6212eb4d7a
1 changed files with 1 additions and 1 deletions
|
@ -843,7 +843,7 @@ noinline int __filemap_add_folio(struct address_space *mapping,
|
|||
struct folio *folio, pgoff_t index, gfp_t gfp, void **shadowp)
|
||||
{
|
||||
XA_STATE(xas, &mapping->i_pages, index);
|
||||
int huge = folio_test_hugetlb(folio);
|
||||
bool huge = folio_test_hugetlb(folio);
|
||||
bool charged = false;
|
||||
long nr = 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue