From: David van Moolenbroek Date: Thu, 19 Jul 2012 14:36:51 +0000 (+0000) Subject: VFS: call req_inhibread again X-Git-Tag: v3.2.1~444 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch10.html?a=commitdiff_plain;h=0b4c15416032152f11ef6db291cfe362f292723e;p=minix.git VFS: call req_inhibread again --- diff --git a/servers/vfs/open.c b/servers/vfs/open.c index b057d8a6d..f5ee4599c 100644 --- a/servers/vfs/open.c +++ b/servers/vfs/open.c @@ -652,12 +652,12 @@ int do_lseek() } else if ((off_t) ex64lo(newpos) < 0) { /* no negative file size */ r = EOVERFLOW; } else { - rfilp->filp_pos = newpos; - /* insert the new position into the output message */ m_out.reply_l1 = ex64lo(newpos); if (cmp64(newpos, rfilp->filp_pos) != 0) { + rfilp->filp_pos = newpos; + /* Inhibit read ahead request */ r = req_inhibread(rfilp->filp_vno->v_fs_e, rfilp->filp_vno->v_inode_nr); @@ -709,13 +709,13 @@ int do_llseek() else if ((off_hi < 0) && cmp64(newpos, pos) > 0) r = EINVAL; else { - rfilp->filp_pos = newpos; - /* insert the new position into the output message */ m_out.reply_l1 = ex64lo(newpos); m_out.reply_l2 = ex64hi(newpos); if (cmp64(newpos, rfilp->filp_pos) != 0) { + rfilp->filp_pos = newpos; + /* Inhibit read ahead request */ r = req_inhibread(rfilp->filp_vno->v_fs_e, rfilp->filp_vno->v_inode_nr);