]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/rmap.h
net: Fix build failure due to lockdep_sock_is_held().
[karo-tx-linux.git] / include / linux / rmap.h
index a07f42bedda32687c94ed574f5a606b19912b042..49eb4f8ebac9636a394dbe097532c70a08e056d7 100644 (file)
@@ -86,6 +86,7 @@ enum ttu_flags {
        TTU_MIGRATION = 2,              /* migration mode */
        TTU_MUNLOCK = 4,                /* munlock mode */
        TTU_LZFREE = 8,                 /* lazy free mode */
+       TTU_SPLIT_HUGE_PMD = 16,        /* split huge PMD if any */
 
        TTU_IGNORE_MLOCK = (1 << 8),    /* ignore mlock */
        TTU_IGNORE_ACCESS = (1 << 9),   /* don't age */
@@ -93,6 +94,8 @@ enum ttu_flags {
        TTU_BATCH_FLUSH = (1 << 11),    /* Batch TLB flushes where possible
                                         * and caller guarantees they will
                                         * do a final flush if necessary */
+       TTU_RMAP_LOCKED = (1 << 12)     /* do not grab rmap lock:
+                                        * caller holds it */
 };
 
 #ifdef CONFIG_MMU
@@ -240,6 +243,8 @@ int page_mkclean(struct page *);
  */
 int try_to_munlock(struct page *);
 
+void remove_migration_ptes(struct page *old, struct page *new, bool locked);
+
 /*
  * Called by memory-failure.c to kill processes.
  */
@@ -266,6 +271,7 @@ struct rmap_walk_control {
 };
 
 int rmap_walk(struct page *page, struct rmap_walk_control *rwc);
+int rmap_walk_locked(struct page *page, struct rmap_walk_control *rwc);
 
 #else  /* !CONFIG_MMU */