diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2005-05-25 09:38:26 +0100 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2005-05-25 09:38:26 +0100 |
| commit | c1c58ada91cfe86f19d430282132434e620a1067 (patch) | |
| tree | cd12933040a65398e9779c3596f5109e37c206c3 /mm/filemap.c | |
| parent | 67394f8f069c2fdf90f3b6d851824c07815442af (diff) | |
| parent | 2a24ab628aa7b190be32f63dfb6d96f3fb61580a (diff) | |
Merge with /usr/src/ntfs-2.6.git
Diffstat (limited to 'mm/filemap.c')
| -rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 47263ac3e4ea..1d33fec7bac6 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1004,7 +1004,7 @@ __generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov, if (pos < size) { retval = generic_file_direct_IO(READ, iocb, iov, pos, nr_segs); - if (retval >= 0 && !is_sync_kiocb(iocb)) + if (retval > 0 && !is_sync_kiocb(iocb)) retval = -EIOCBQUEUED; if (retval > 0) *ppos = pos + retval; |
