diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 18:17:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 18:17:40 -0400 |
commit | e533b227055598b1f7dc8503a3b4f36b14b9da8a (patch) | |
tree | 28fec4125eac45c8e2fac75b3d10ff5cd987d2f6 /mm/filemap.c | |
parent | 0999d978dcdcf59350dafa25afd70def9f924eee (diff) | |
parent | 6b2ada82101a08e2830fb29d7dc9b858be637dd4 (diff) |
Merge branch 'core-v28-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-v28-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
do_generic_file_read: s/EINTR/EIO/ if lock_page_killable() fails
softirq, warning fix: correct a format to avoid a warning
softirqs, debug: preemption check
x86, pci-hotplug, calgary / rio: fix EBDA ioremap()
IO resources, x86: ioremap sanity check to catch mapping requests exceeding, fix
IO resources, x86: ioremap sanity check to catch mapping requests exceeding the BAR sizes
softlockup: Documentation/sysctl/kernel.txt: fix softlockup_thresh description
dmi scan: warn about too early calls to dmi_check_system()
generic: redefine resource_size_t as phys_addr_t
generic: make PFN_PHYS explicitly return phys_addr_t
generic: add phys_addr_t for holding physical addresses
softirq: allocate less vectors
IO resources: fix/remove printk
printk: robustify printk, update comment
printk: robustify printk, fix #2
printk: robustify printk, fix
printk: robustify printk
Fixed up conflicts in:
arch/powerpc/include/asm/types.h
arch/powerpc/platforms/Kconfig.cputype
manually.
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index bf8f9c0c7a83..903bf316912a 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1100,8 +1100,9 @@ page_ok: | |||
1100 | 1100 | ||
1101 | page_not_up_to_date: | 1101 | page_not_up_to_date: |
1102 | /* Get exclusive access to the page ... */ | 1102 | /* Get exclusive access to the page ... */ |
1103 | if (lock_page_killable(page)) | 1103 | error = lock_page_killable(page); |
1104 | goto readpage_eio; | 1104 | if (unlikely(error)) |
1105 | goto readpage_error; | ||
1105 | 1106 | ||
1106 | page_not_up_to_date_locked: | 1107 | page_not_up_to_date_locked: |
1107 | /* Did it get truncated before we got the lock? */ | 1108 | /* Did it get truncated before we got the lock? */ |
@@ -1130,8 +1131,9 @@ readpage: | |||
1130 | } | 1131 | } |
1131 | 1132 | ||
1132 | if (!PageUptodate(page)) { | 1133 | if (!PageUptodate(page)) { |
1133 | if (lock_page_killable(page)) | 1134 | error = lock_page_killable(page); |
1134 | goto readpage_eio; | 1135 | if (unlikely(error)) |
1136 | goto readpage_error; | ||
1135 | if (!PageUptodate(page)) { | 1137 | if (!PageUptodate(page)) { |
1136 | if (page->mapping == NULL) { | 1138 | if (page->mapping == NULL) { |
1137 | /* | 1139 | /* |
@@ -1143,15 +1145,14 @@ readpage: | |||
1143 | } | 1145 | } |
1144 | unlock_page(page); | 1146 | unlock_page(page); |
1145 | shrink_readahead_size_eio(filp, ra); | 1147 | shrink_readahead_size_eio(filp, ra); |
1146 | goto readpage_eio; | 1148 | error = -EIO; |
1149 | goto readpage_error; | ||
1147 | } | 1150 | } |
1148 | unlock_page(page); | 1151 | unlock_page(page); |
1149 | } | 1152 | } |
1150 | 1153 | ||
1151 | goto page_ok; | 1154 | goto page_ok; |
1152 | 1155 | ||
1153 | readpage_eio: | ||
1154 | error = -EIO; | ||
1155 | readpage_error: | 1156 | readpage_error: |
1156 | /* UHHUH! A synchronous read error occurred. Report it */ | 1157 | /* UHHUH! A synchronous read error occurred. Report it */ |
1157 | desc->error = error; | 1158 | desc->error = error; |