Searched refs:f (Results 1 – 10 of 10) sorted by relevance
| /mm/damon/tests/ |
| A D | core-kunit.h | 426 struct damos_filter *f; in damos_test_filter_out() local 428 f = damos_new_filter(DAMOS_FILTER_TYPE_ADDR, true, false); in damos_test_filter_out() 429 f->addr_range = (struct damon_addr_range){ in damos_test_filter_out() 437 KUNIT_EXPECT_TRUE(test, damos_filter_match(NULL, t, r, f)); in damos_test_filter_out() 443 KUNIT_EXPECT_FALSE(test, damos_filter_match(NULL, t, r, f)); in damos_test_filter_out() 449 KUNIT_EXPECT_FALSE(test, damos_filter_match(NULL, t, r, f)); in damos_test_filter_out() 455 KUNIT_EXPECT_FALSE(test, damos_filter_match(NULL, t, r, f)); in damos_test_filter_out() 468 KUNIT_EXPECT_TRUE(test, damos_filter_match(NULL, t, r, f)); in damos_test_filter_out() 479 damos_free_filter(f); in damos_test_filter_out()
|
| /mm/ |
| A D | fadvise.c | 193 CLASS(fd, f)(fd); in ksys_fadvise64_64() 195 if (fd_empty(f)) in ksys_fadvise64_64() 198 return vfs_fadvise(fd_file(f), offset, len, advice); in ksys_fadvise64_64()
|
| A D | readahead.c | 698 CLASS(fd, f)(fd); in ksys_readahead() 699 if (fd_empty(f)) in ksys_readahead() 702 file = fd_file(f); in ksys_readahead() 722 return vfs_fadvise(fd_file(f), offset, count, POSIX_FADV_WILLNEED); in ksys_readahead()
|
| A D | madvise.c | 1015 struct file *f; in madvise_remove() local 1026 f = vma->vm_file; in madvise_remove() 1028 if (!f || !f->f_mapping || !f->f_mapping->host) { in madvise_remove() 1044 get_file(f); in madvise_remove() 1049 error = vfs_fallocate(f, in madvise_remove() 1052 fput(f); in madvise_remove()
|
| A D | hugetlb.c | 622 if (iter->from < f) { in add_reservation_in_range() 765 VM_BUG_ON(t - f <= 1); in region_add() 879 if (rg->to <= f && (rg->to != rg->from || rg->to != f)) in region_del() 907 del += t - f; in region_del() 909 resv, rg, t - f, false); in region_del() 920 rg->to = f; in region_del() 944 rg->to - f, false); in region_del() 946 del += rg->to - f; in region_del() 947 rg->to = f; in region_del() 1001 if (rg->to <= f) in region_count() [all …]
|
| A D | filemap.c | 4528 static inline bool can_do_cachestat(struct file *f) in can_do_cachestat() argument 4530 if (f->f_mode & FMODE_WRITE) in can_do_cachestat() 4532 if (inode_owner_or_capable(file_mnt_idmap(f), file_inode(f))) in can_do_cachestat() 4534 return file_permission(f, MAY_WRITE) == 0; in can_do_cachestat() 4575 CLASS(fd, f)(fd); in SYSCALL_DEFINE4() 4581 if (fd_empty(f)) in SYSCALL_DEFINE4() 4589 if (is_file_hugepages(fd_file(f))) in SYSCALL_DEFINE4() 4592 if (!can_do_cachestat(fd_file(f))) in SYSCALL_DEFINE4() 4602 mapping = fd_file(f)->f_mapping; in SYSCALL_DEFINE4()
|
| A D | khugepaged.c | 608 struct folio *f; in __collapse_huge_page_isolate() local 614 list_for_each_entry(f, compound_pagelist, lru) { in __collapse_huge_page_isolate() 615 if (folio == f) in __collapse_huge_page_isolate()
|
| A D | memory.c | 6941 struct file *f = vma->vm_file; in print_vma_addr() local 6944 printk("%s%pD[%lx,%lx+%lx]", prefix, f, ip, in print_vma_addr()
|
| /mm/damon/ |
| A D | core.c | 304 if (damos_filter_for_ops(f->type)) in damos_add_filter() 305 list_add_tail(&f->list, &s->ops_filters); in damos_add_filter() 307 list_add_tail(&f->list, &s->filters); in damos_add_filter() 312 list_del(&f->list); in damos_del_filter() 317 kfree(f); in damos_free_filter() 320 void damos_destroy_filter(struct damos_filter *f) in damos_destroy_filter() argument 322 damos_del_filter(f); in damos_destroy_filter() 323 damos_free_filter(f); in damos_destroy_filter() 446 struct damos_filter *f, *next; in damon_destroy_scheme() local 451 damos_for_each_filter_safe(f, next, s) in damon_destroy_scheme() [all …]
|
| A D | paddr.c | 267 struct damos_filter *f; in damon_pa_scheme_has_filter() local 269 damos_for_each_ops_filter(f, s) in damon_pa_scheme_has_filter()
|
Completed in 73 milliseconds