- add-vector-aio-support-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     add-vector-aio-support-fix

has been removed from the -mm tree.  Its filename is

     add-vector-aio-support-fix.patch

This patch was dropped because it was folded into add-vector-aio-support.patch

------------------------------------------------------
Subject: add-vector-aio-support-fix
From: Andrew Morton <akpm@xxxxxxxx>

On sparc32:

fs/read_write.c: In function 'rw_copy_check_uvector':
fs/read_write.c:567: warning: implicit declaration of function 'vrfy_dir'
fs/read_write.c:567: error: 'type' undeclared (first use in this function)
fs/read_write.c:567: error: (Each undeclared identifier is reported only once
fs/read_write.c:567: error: for each function it appears in.)
distcc[26751] ERROR: compile fs/read_write.c on bix/32 failed

This had extensive fallout.  Perhaps it'd be better to work out the direction
from the kiocb rather than passing it in.


Cc: Zach Brown <zach.brown@xxxxxxxxxx>
Cc: Christoph Hellwig <hch@xxxxxx>
Cc: Badari Pulavarty <pbadari@xxxxxxxxxx>
Cc: Benjamin LaHaise <bcrl@xxxxxxxxx>
Cc: James Morris <jmorris@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/aio.c           |    8 ++++----
 fs/read_write.c    |   12 ++++++------
 include/linux/fs.h |    2 +-
 3 files changed, 11 insertions(+), 11 deletions(-)

diff -puN fs/aio.c~add-vector-aio-support-fix fs/aio.c
--- a/fs/aio.c~add-vector-aio-support-fix
+++ a/fs/aio.c
@@ -1387,11 +1387,11 @@ static ssize_t aio_fsync(struct kiocb *i
 	return ret;
 }
 
-static ssize_t aio_setup_vectored_rw(struct kiocb *kiocb)
+static ssize_t aio_setup_vectored_rw(int type, struct kiocb *kiocb)
 {
 	ssize_t ret;
 
-	ret = rw_copy_check_uvector((struct iovec __user *)kiocb->ki_buf,
+	ret = rw_copy_check_uvector(type, (struct iovec __user *)kiocb->ki_buf,
 				    kiocb->ki_nbytes, 1,
 				    &kiocb->ki_inline_vec, &kiocb->ki_iovec);
 	if (ret < 0)
@@ -1473,7 +1473,7 @@ static ssize_t aio_setup_iocb(struct kio
 		ret = security_file_permission(file, MAY_READ);
 		if (unlikely(ret))
 			break;
-		ret = aio_setup_vectored_rw(kiocb);
+		ret = aio_setup_vectored_rw(READ, kiocb);
 		if (ret)
 			break;
 		ret = -EINVAL;
@@ -1487,7 +1487,7 @@ static ssize_t aio_setup_iocb(struct kio
 		ret = security_file_permission(file, MAY_WRITE);
 		if (unlikely(ret))
 			break;
-		ret = aio_setup_vectored_rw(kiocb);
+		ret = aio_setup_vectored_rw(WRITE, kiocb);
 		if (ret)
 			break;
 		ret = -EINVAL;
diff -puN fs/read_write.c~add-vector-aio-support-fix fs/read_write.c
--- a/fs/read_write.c~add-vector-aio-support-fix
+++ a/fs/read_write.c
@@ -508,7 +508,10 @@ ssize_t do_loop_readv_writev(struct file
 	return ret;
 }
 
-ssize_t rw_copy_check_uvector(const struct iovec __user * uvector,
+/* A write operation does a read from user space and vice versa */
+#define vrfy_dir(type) ((type) == READ ? VERIFY_WRITE : VERIFY_READ)
+
+ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector,
 			      unsigned long nr_segs, unsigned long fast_segs,
 			      struct iovec *fast_pointer,
 			      struct iovec **ret_pointer)
@@ -576,9 +579,6 @@ out:
 	return ret;
 }
 
-/* A write operation does a read from user space and vice versa */
-#define vrfy_dir(type) ((type) == READ ? VERIFY_WRITE : VERIFY_READ)
-
 static ssize_t do_readv_writev(int type, struct file *file,
 			       const struct iovec __user * uvector,
 			       unsigned long nr_segs, loff_t *pos)
@@ -595,8 +595,8 @@ static ssize_t do_readv_writev(int type,
 		goto out;
 	}
 
-	ret = rw_copy_check_uvector(uvector, nr_segs, ARRAY_SIZE(iovstack),
-			iovstack, &iov);
+	ret = rw_copy_check_uvector(type, uvector, nr_segs,
+			ARRAY_SIZE(iovstack), iovstack, &iov);
 	if (ret <= 0)
 		goto out;
 
diff -puN include/linux/fs.h~add-vector-aio-support-fix include/linux/fs.h
--- a/include/linux/fs.h~add-vector-aio-support-fix
+++ a/include/linux/fs.h
@@ -1159,7 +1159,7 @@ struct inode_operations {
 
 struct seq_file;
 
-ssize_t rw_copy_check_uvector(const struct iovec __user * uvector,
+ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector,
 				unsigned long nr_segs, unsigned long fast_segs,
 				struct iovec *fast_pointer,
 				struct iovec **ret_pointer);
_

Patches currently in -mm which might be from akpm@xxxxxxxx are

origin.patch
list_del-debug-fix.patch
arch-i386-pci-mmconfigc-tlb-flush-fix-tweaks.patch
maximum-latency-tracking-infrastructure.patch
submit-checklist-mention-headers_check.patch
ntp-move-all-the-ntp-related-code-to-ntpc.patch
reiserfs-on-demand-bitmap-loading.patch
add-vector-aio-support.patch
add-vector-aio-support-fix.patch
csa-basic-accounting-over-taskstats-fix.patch
stack-overflow-safe-kdump-crash_use_safe_smp_processor_id-fix.patch
generic-ioremap_page_range-x86_64-conversion-fix.patch
some-cleanup-in-the-pipe-code-tidy.patch
support-piping-into-commands-in-proc-sys-kernel-core_pattern-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux