diff options
author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-22 13:06:44 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-22 13:06:44 -0500 |
commit | 0bd2af46839ad6262d25714a6ec0365db9d6b98f (patch) | |
tree | dcced72d230d69fd0c5816ac6dd03ab84799a93e /arch/i386/lib/usercopy.c | |
parent | e138a5d2356729b8752e88520cc1525fae9794ac (diff) | |
parent | f26b90440cd74c78fe10c9bd5160809704a9627c (diff) |
Merge ../scsi-rc-fixes-2.6
Diffstat (limited to 'arch/i386/lib/usercopy.c')
-rw-r--r-- | arch/i386/lib/usercopy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/i386/lib/usercopy.c b/arch/i386/lib/usercopy.c index 08502fc6d0cb..d22cfc9d656c 100644 --- a/arch/i386/lib/usercopy.c +++ b/arch/i386/lib/usercopy.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <linux/highmem.h> | 9 | #include <linux/highmem.h> |
10 | #include <linux/blkdev.h> | 10 | #include <linux/blkdev.h> |
11 | #include <linux/module.h> | 11 | #include <linux/module.h> |
12 | #include <linux/backing-dev.h> | ||
12 | #include <asm/uaccess.h> | 13 | #include <asm/uaccess.h> |
13 | #include <asm/mmx.h> | 14 | #include <asm/mmx.h> |
14 | 15 | ||
@@ -179,7 +180,7 @@ __clear_user(void __user *to, unsigned long n) | |||
179 | EXPORT_SYMBOL(__clear_user); | 180 | EXPORT_SYMBOL(__clear_user); |
180 | 181 | ||
181 | /** | 182 | /** |
182 | * strlen_user: - Get the size of a string in user space. | 183 | * strnlen_user: - Get the size of a string in user space. |
183 | * @s: The string to measure. | 184 | * @s: The string to measure. |
184 | * @n: The maximum valid length | 185 | * @n: The maximum valid length |
185 | * | 186 | * |
@@ -741,7 +742,7 @@ survive: | |||
741 | 742 | ||
742 | if (retval == -ENOMEM && is_init(current)) { | 743 | if (retval == -ENOMEM && is_init(current)) { |
743 | up_read(¤t->mm->mmap_sem); | 744 | up_read(¤t->mm->mmap_sem); |
744 | blk_congestion_wait(WRITE, HZ/50); | 745 | congestion_wait(WRITE, HZ/50); |
745 | goto survive; | 746 | goto survive; |
746 | } | 747 | } |
747 | 748 | ||