aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/buffer_head.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-02-26 15:34:42 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-02-26 15:34:42 -0500
commit8e22e1b3499a446df48c2b26667ca36c55bf864c (patch)
tree5329f98b3eb3c95a9dcbab0fa4f9b6e62f0e788d /include/linux/buffer_head.h
parent00d3c14f14d51babd8aeafd5fa734ccf04f5ca3d (diff)
parent64a577196d66b44e37384bc5c4d78c61f59d5b2a (diff)
Merge airlied/drm-next into drm-misc-next
Backmerge the main pull request to sync up with all the newly landed drivers. Otherwise we'll have chaos even before 4.12 started in earnest. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/linux/buffer_head.h')
-rw-r--r--include/linux/buffer_head.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h
index d67ab83823ad..79591c3660cc 100644
--- a/include/linux/buffer_head.h
+++ b/include/linux/buffer_head.h
@@ -243,12 +243,10 @@ static inline int block_page_mkwrite_return(int err)
243{ 243{
244 if (err == 0) 244 if (err == 0)
245 return VM_FAULT_LOCKED; 245 return VM_FAULT_LOCKED;
246 if (err == -EFAULT) 246 if (err == -EFAULT || err == -EAGAIN)
247 return VM_FAULT_NOPAGE; 247 return VM_FAULT_NOPAGE;
248 if (err == -ENOMEM) 248 if (err == -ENOMEM)
249 return VM_FAULT_OOM; 249 return VM_FAULT_OOM;
250 if (err == -EAGAIN)
251 return VM_FAULT_RETRY;
252 /* -ENOSPC, -EDQUOT, -EIO ... */ 250 /* -ENOSPC, -EDQUOT, -EIO ... */
253 return VM_FAULT_SIGBUS; 251 return VM_FAULT_SIGBUS;
254} 252}