Lines Matching defs:mpol
113 struct mempolicy *mpol;
1471 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol)
1475 if (!mpol || mpol->mode == MPOL_DEFAULT)
1478 mpol_to_str(buffer, sizeof(buffer), mpol);
1480 seq_printf(seq, ",mpol=%s", buffer);
1485 struct mempolicy *mpol = NULL;
1486 if (sbinfo->mpol) {
1488 mpol = sbinfo->mpol;
1489 mpol_get(mpol);
1492 return mpol;
1495 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol)
2216 static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol)
2219 return mpol_set_shared_policy(&SHMEM_I(inode)->policy, vma, mpol);
3441 fsparam_string("mpol", Opt_mpol),
3532 mpol_put(ctx->mpol);
3533 ctx->mpol = NULL;
3534 if (mpol_parse_str(param->string, &ctx->mpol))
3576 * but mpol's nodelist may also contain commas.
3660 * Preserve previous mempolicy unless mpol remount option was specified.
3662 if (ctx->mpol) {
3663 mpol_put(sbinfo->mpol);
3664 sbinfo->mpol = ctx->mpol; /* transfers initial ref */
3665 ctx->mpol = NULL;
3719 shmem_show_mpol(seq, sbinfo->mpol);
3731 mpol_put(sbinfo->mpol);
3784 sbinfo->mpol = ctx->mpol;
3785 ctx->mpol = NULL;
3832 mpol_put(ctx->mpol);