fs/binfmt_elf: use PT_LOAD p_align values for suitable start address
[linux-block.git] / fs / aio.c
index d5ec303855669de4e90d7b810c73333d089486fb..c45c20d875388c8c3562e9bef2af8b611889fcac 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1489,12 +1489,8 @@ static ssize_t aio_setup_rw(int rw, const struct iocb *iocb,
                *iovec = NULL;
                return ret;
        }
-#ifdef CONFIG_COMPAT
-       if (compat)
-               return compat_import_iovec(rw, buf, len, UIO_FASTIOV, iovec,
-                               iter);
-#endif
-       return import_iovec(rw, buf, len, UIO_FASTIOV, iovec, iter);
+
+       return __import_iovec(rw, buf, len, UIO_FASTIOV, iovec, iter, compat);
 }
 
 static inline void aio_rw_done(struct kiocb *req, ssize_t ret)