GFS2: No need to invalidate pages for a dio read
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 14 Jan 2014 13:46:51 +0000 (13:46 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 14 Jan 2014 19:20:49 +0000 (19:20 +0000)
commit086352f1aa8d717eaf565074d6634c7bdd26aca0
treed708e25a18042650b975700c10f92029a58fd0a9
parent39849d6946a84861a517c09ca0b691ce6d98c7a6
GFS2: No need to invalidate pages for a dio read

We recently fixed the writeback of pages prior to performing
direct i/o, however the initial fix was perhaps a bit heavy
handed. There is no need to invalidate pages if the direct i/o
is only a read, since they will be identical to what has been
flushed to disk anyway.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/aops.c