Commit 0e0bcae3 authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

[GFS2] Fix direct i/o logic in filemap.c



We shouldn't mark the file accessed in the case that it
wasn't accessed.

Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 7e18c02b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1180,10 +1180,11 @@ __generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,
			if (retval > 0)
				*ppos = pos + retval;
		}
		file_accessed(filp);
		if (retval != 0)
		if (likely(retval != 0)) {
			file_accessed(flip);
			goto out;
		}
	}

	retval = 0;
	if (count) {