Skip to contentSkip to conversation

export use_mm and unuse_mm for filesystem modules.

RFC PATCH In review jim owens 2 participants 4 messages Jan 19, 2010 – Jan 20, 2010

Subsystems (2)
lore
Share & tools
lore

jim owens

author
#0 lore raw

RFC PATCH 2/3 export use_mm and unuse_mm for filesystem modules.

required for btrfs directio worker threads.

---
mm/mmu_context.c | 3 +++

1 files changed, 3 insertions(+), 0 deletions(-)
mm/mmu_context.c +1 -0
index ded9081..daabf4d 100644
@@ -3,6 +3,7 @@
 * See ../COPYING for licensing terms.
 */
 
+#include <linux/module.h>

#include <linux/mm.h>
#include <linux/mmu_context.h>
#include <linux/sched.h>
@@ -37,6 +38,7 @@ void use_mm(struct mm_struct *mm)

    if (active_mm != mm)
        mmdrop(active_mm);
}

+EXPORT_SYMBOL_GPL(use_mm);

/*
* unuse_mm
@@ -56,3 +58,4 @@ void unuse_mm(struct mm_struct *mm)

    enter_lazy_tlb(mm, tsk);
    task_unlock(tsk);
}

+EXPORT_SYMBOL_GPL(unuse_mm);

Signature · 1 line
1.5.6.3
#1 lore raw

Maybe, you should send this patch to

Andrew Morton <[email protected]>
Andrea Arcangeli <[email protected]>
Michael S. Tsirkin <[email protected]>
[email protected]
[email protected]

=E4=BA=8E 2010=E5=B9=B401=E6=9C=8820=E6=97=A5 05:58, jim owens =E5=86=99= =E9=81=93:

Quoted 32 lines

required for btrfs directio worker threads.

---
mm/mmu_context.c | 3 +++

1 files changed, 3 insertions(+), 0 deletions(-)
mm/mmu_context.c +3 -0
index ded9081..daabf4d 100644
@@ -3,6 +3,7 @@
  * See ../COPYING for licensing terms.
  */
 
+#include<linux/module.h>
 #include<linux/mm.h>
 #include<linux/mmu_context.h>
 #include<linux/sched.h>
@@ -37,6 +38,7 @@ void use_mm(struct mm_struct *mm)
     if (active_mm !=3D mm)
         mmdrop(active_mm);
 }
+EXPORT_SYMBOL_GPL(use_mm);
 
 /*
  * unuse_mm
@@ -56,3 +58,4 @@ void unuse_mm(struct mm_struct *mm)
     enter_lazy_tlb(mm, tsk);
     task_unlock(tsk);
 }
+EXPORT_SYMBOL_GPL(unuse_mm);
Quoted 1 line

=20

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#3 lore raw
Quoted 3 lines · jim owens

What I did not say was it was sent on December 9, 2009 to every addess on your list, except for Andrea.

OK, as josef told me, the patch is corrupt and will not apply.

I am sending a new one I just made against btrfs-unstable to linux-btrfs and will create a new patch for Andrew when the directIO code has been tested.

jim