diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-06-17 18:56:24 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-02-15 10:32:32 -0600 |
commit | 15d2466508cf24d267afff394c89ab0286243853 (patch) | |
tree | a5e8159a3384d3da0821b0e7672121befd299b64 /mm | |
parent | be04cbc6e5096f54683c8cfa50c10ca754e640f6 (diff) |
filemap-fix-up.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Wrecked-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-m6yuzd6ul717hlnl2gj6p3ou@git.kernel.org
Diffstat (limited to 'mm')
-rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 03c5b0ec2b78..4a30d36ca4c8 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2044,7 +2044,7 @@ size_t iov_iter_copy_from_user_atomic(struct page *page, char *kaddr; size_t copied; - BUG_ON(!in_atomic()); + BUG_ON(!pagefault_disabled()); kaddr = kmap_atomic(page, KM_USER0); if (likely(i->nr_segs == 1)) { int left; |