• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/mm/

Lines Matching refs:to

31  * Protects updates to hugepage_freelists, nr_huge_pages, and free_huge_pages
291 * handle_mm_fault() to try to instantiate regular-sized pages in the
292 * hugegpage VMA. do_page_fault() is supposed to trap this, so BUG is we get
383 * lock is used to avoid list corruption from multiple unmapping
422 * It is undesirable to test vma->vm_file as it should be non-null
426 * to clean up. Since no pte has actually been setup, it is safe to
492 * Use page lock to guard against racing truncation
571 * get spurious allocation failures if two CPUs race to instantiate
609 * Some archs (sparc64, sh*) have multiple pte_ts to
610 * each hugepage. We have to make * sure we get the
611 * first, for the page indexing below to work.
648 * We use pfn_offset to avoid touching the pageframes
696 long to;
705 if (f <= rg->to)
708 /* Round our left edge to the current segment if it encloses us. */
720 /* If this area reaches higher then extend our area to
722 * which we intend to reuse, free it. */
723 if (rg->to > t)
724 t = rg->to;
731 nrg->to = t;
742 if (f <= rg->to)
747 * size such that we can guarentee to record the reservation. */
753 nrg->to = f;
760 /* Round our left edge to the current segment if it encloses us. */
775 if (rg->to > t) {
776 chg += rg->to - t;
777 t = rg->to;
779 chg -= rg->to - rg->from;
791 if (end <= rg->to)
798 chg = rg->to - end;
799 rg->to = end;
807 chg += rg->to - rg->from;
827 int hugetlb_reserve_pages(struct inode *inode, long from, long to)
831 chg = region_chg(&inode->i_mapping->private_list, from, to);
841 * Attempt to enforce strict accounting with cpuset is almost
846 * undesirable. However, in order to preserve some of the semantics,
847 * we fall back to check against current free page availability as
848 * a best attempt and hopefully to minimize the impact of changing
857 region_add(&inode->i_mapping->private_list, from, to);