Doing diffs in .: --- xlators/performance/read-ahead/src/read-ahead.c.~1~ 2007-05-14 00:07:12.000000000 -0700 +++ xlators/performance/read-ahead/src/read-ahead.c 2007-06-01 01:51:21.000000000 -0700 @@ -65,8 +65,10 @@ ra_open_cbk (call_frame_t *frame, /* If O_DIRECT open, we disable caching on it */ +#ifdef O_DIRECT if ((local->flags & O_DIRECT) || (local->flags & O_WRONLY)) file->disabled = 1; +#endif file->offset = (unsigned long long) -1; file->size = buf->st_size; --------------