]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
[XFS] Clear XBF_READ_AHEAD flag on I/O completion.
authorLachlan McIlroy <lachlan@sgi.com>
Fri, 23 Nov 2007 05:31:00 +0000 (16:31 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Mon, 10 Dec 2007 02:46:45 +0000 (13:46 +1100)
SGI-PV: 972554
SGI-Modid: xfs-linux-melb:xfs-kern:30128a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
fs/xfs/linux-2.6/xfs_buf.c

index 48bf477cbca50b420cfa700ef21dfc7762c00da0..43d6c7a290e2725e1c40fe6fc686c9ea4d362dc3 100644 (file)
@@ -1025,7 +1025,7 @@ xfs_buf_ioend(
        xfs_buf_t               *bp,
        int                     schedule)
 {
-       bp->b_flags &= ~(XBF_READ | XBF_WRITE);
+       bp->b_flags &= ~(XBF_READ | XBF_WRITE | XBF_READ_AHEAD);
        if (bp->b_error == 0)
                bp->b_flags |= XBF_DONE;