mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
mm/rmap: change the type of we_locked from int to bool
Change the type of we_locked from int to bool because folio_trylock return bool Link: https://lkml.kernel.org/r/20240428012049.8182-1-gehao@kylinos.cn Signed-off-by: Hao Ge <gehao@kylinos.cn> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
620875560b
commit
637a900b08
@ -964,7 +964,7 @@ static bool invalid_folio_referenced_vma(struct vm_area_struct *vma, void *arg)
|
||||
int folio_referenced(struct folio *folio, int is_locked,
|
||||
struct mem_cgroup *memcg, unsigned long *vm_flags)
|
||||
{
|
||||
int we_locked = 0;
|
||||
bool we_locked = false;
|
||||
struct folio_referenced_arg pra = {
|
||||
.mapcount = folio_mapcount(folio),
|
||||
.memcg = memcg,
|
||||
|
Loading…
Reference in New Issue
Block a user