Lines Matching refs:mpol

117 	struct mempolicy *mpol;  member
1661 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() argument
1665 if (!mpol || mpol->mode == MPOL_DEFAULT) in shmem_show_mpol()
1668 mpol_to_str(buffer, sizeof(buffer), mpol); in shmem_show_mpol()
1675 struct mempolicy *mpol = NULL; in shmem_get_sbmpol() local
1676 if (sbinfo->mpol) { in shmem_get_sbmpol()
1678 mpol = sbinfo->mpol; in shmem_get_sbmpol()
1679 mpol_get(mpol); in shmem_get_sbmpol()
1682 return mpol; in shmem_get_sbmpol()
1685 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() argument
1700 struct mempolicy *mpol; in shmem_swapin_cluster() local
1704 mpol = shmem_get_pgoff_policy(info, index, 0, &ilx); in shmem_swapin_cluster()
1705 folio = swap_cluster_readahead(swap, gfp, mpol, ilx); in shmem_swapin_cluster()
1706 mpol_cond_put(mpol); in shmem_swapin_cluster()
1858 struct mempolicy *mpol; in shmem_alloc_folio() local
1862 mpol = shmem_get_pgoff_policy(info, index, order, &ilx); in shmem_alloc_folio()
1863 folio = folio_alloc_mpol(gfp, order, mpol, ilx, numa_node_id()); in shmem_alloc_folio()
1864 mpol_cond_put(mpol); in shmem_alloc_folio()
2868 static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in shmem_set_policy() argument
2871 return mpol_set_shared_policy(&SHMEM_I(inode)->policy, vma, mpol); in shmem_set_policy()
2894 struct mempolicy *mpol; in shmem_get_pgoff_policy() local
2899 mpol = mpol_shared_policy_lookup(&info->policy, index); in shmem_get_pgoff_policy()
2900 return mpol ? mpol : get_task_policy(current); in shmem_get_pgoff_policy()
4668 mpol_put(ctx->mpol); in shmem_parse_one()
4669 ctx->mpol = NULL; in shmem_parse_one()
4670 if (mpol_parse_str(param->string, &ctx->mpol)) in shmem_parse_one()
4810 struct mempolicy *mpol = NULL; in shmem_reconfigure() local
4884 if (ctx->mpol) { in shmem_reconfigure()
4885 mpol = sbinfo->mpol; in shmem_reconfigure()
4886 sbinfo->mpol = ctx->mpol; /* transfers initial ref */ in shmem_reconfigure()
4887 ctx->mpol = NULL; in shmem_reconfigure()
4894 mpol_put(mpol); in shmem_reconfigure()
4904 struct mempolicy *mpol; in shmem_show_options() local
4946 mpol = shmem_get_sbmpol(sbinfo); in shmem_show_options()
4947 shmem_show_mpol(seq, mpol); in shmem_show_options()
4948 mpol_put(mpol); in shmem_show_options()
4988 mpol_put(sbinfo->mpol); in shmem_put_super()
5072 sbinfo->mpol = ctx->mpol; in shmem_fill_super()
5073 ctx->mpol = NULL; in shmem_fill_super()
5140 mpol_put(ctx->mpol); in shmem_free_fc()