Lines Matching defs:mpol
115 struct mempolicy *mpol;
1553 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol)
1557 if (!mpol || mpol->mode == MPOL_DEFAULT)
1560 mpol_to_str(buffer, sizeof(buffer), mpol);
1562 seq_printf(seq, ",mpol=%s", buffer);
1567 struct mempolicy *mpol = NULL;
1568 if (sbinfo->mpol) {
1570 mpol = sbinfo->mpol;
1571 mpol_get(mpol);
1574 return mpol;
1577 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol)
2343 static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol)
2346 return mpol_set_shared_policy(&SHMEM_I(inode)->policy, vma, mpol);
3880 fsparam_string("mpol", Opt_mpol),
3981 mpol_put(ctx->mpol);
3982 ctx->mpol = NULL;
3983 if (mpol_parse_str(param->string, &ctx->mpol))
4087 * but mpol's nodelist may also contain commas.
4123 struct mempolicy *mpol = NULL;
4195 * Preserve previous mempolicy unless mpol remount option was specified.
4197 if (ctx->mpol) {
4198 mpol = sbinfo->mpol;
4199 sbinfo->mpol = ctx->mpol; /* transfers initial ref */
4200 ctx->mpol = NULL;
4207 mpol_put(mpol);
4217 struct mempolicy *mpol;
4259 mpol = shmem_get_sbmpol(sbinfo);
4260 shmem_show_mpol(seq, mpol);
4261 mpol_put(mpol);
4278 mpol_put(sbinfo->mpol);
4333 sbinfo->mpol = ctx->mpol;
4334 ctx->mpol = NULL;
4399 mpol_put(ctx->mpol);