UBUNTU: SAUCE: add tracing for user initiated readahead requests
[linux-flexiantxendom0-natty.git] / mm / filemap.c
index 83a45d3..4fdc966 100644 (file)
@@ -1211,6 +1211,9 @@ int file_read_actor(read_descriptor_t *desc, struct page *page,
        if (size > count)
                size = count;
 
+       if (PageReadaheadUnused(page))
+               ClearPageReadaheadUnused(page);
+
        /*
         * Faults on the destination of a read are common, so do it before
         * taking the kmap.