]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/vm/vnode_pager.c
xnu-6153.11.26.tar.gz
[apple/xnu.git] / bsd / vm / vnode_pager.c
index 436268db2facd4b7433e5d47aa940595790020d6..2fae8525c33804ae590bf07b70ccef894196ecbb 100644 (file)
@@ -618,6 +618,7 @@ vnode_pagein(
                         */
                        if ((error = VNOP_PAGEIN(vp, NULL, upl_offset, (off_t)f_offset,
                            size, flags, vfs_context_current()))) {
+                               set_thread_pagein_error(current_thread(), error);
                                result = PAGER_ERROR;
                                error  = PAGER_ERROR;
                        }
@@ -761,6 +762,7 @@ vnode_pagein(
                                                ubc_upl_abort_range(upl, (upl_offset_t) xoff, xsize, UPL_ABORT_FREE_ON_EMPTY | UPL_ABORT_ERROR);
                                        }
                                }
+                               set_thread_pagein_error(current_thread(), error);
                                result = PAGER_ERROR;
                                error  = PAGER_ERROR;
                        }