diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-12 17:49:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-12 17:49:50 -0400 |
commit | 5166701b368caea89d57b14bf41cf39e819dad51 (patch) | |
tree | c73b9d4860809e3afa9359be9d03ba2d8d98a18e /fs/bio.c | |
parent | 0a7418f5f569512e98789c439198eed4b507cce3 (diff) | |
parent | a786c06d9f2719203c00b3d97b21f9a96980d0b5 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs updates from Al Viro:
"The first vfs pile, with deep apologies for being very late in this
window.
Assorted cleanups and fixes, plus a large preparatory part of iov_iter
work. There's a lot more of that, but it'll probably go into the next
merge window - it *does* shape up nicely, removes a lot of
boilerplate, gets rid of locking inconsistencie between aio_write and
splice_write and I hope to get Kent's direct-io rewrite merged into
the same queue, but some of the stuff after this point is having
(mostly trivial) conflicts with the things already merged into
mainline and with some I want more testing.
This one passes LTP and xfstests without regressions, in addition to
usual beating. BTW, readahead02 in ltp syscalls testsuite has started
giving failures since "mm/readahead.c: fix readahead failure for
memoryless NUMA nodes and limit readahead pages" - might be a false
positive, might be a real regression..."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (63 commits)
missing bits of "splice: fix racy pipe->buffers uses"
cifs: fix the race in cifs_writev()
ceph_sync_{,direct_}write: fix an oops on ceph_osdc_new_request() failure
kill generic_file_buffered_write()
ocfs2_file_aio_write(): switch to generic_perform_write()
ceph_aio_write(): switch to generic_perform_write()
xfs_file_buffered_aio_write(): switch to generic_perform_write()
export generic_perform_write(), start getting rid of generic_file_buffer_write()
generic_file_direct_write(): get rid of ppos argument
btrfs_file_aio_write(): get rid of ppos
kill the 5th argument of generic_file_buffered_write()
kill the 4th argument of __generic_file_aio_write()
lustre: don't open-code kernel_recvmsg()
ocfs2: don't open-code kernel_recvmsg()
drbd: don't open-code kernel_recvmsg()
constify blk_rq_map_user_iov() and friends
lustre: switch to kernel_sendmsg()
ocfs2: don't open-code kernel_sendmsg()
take iov_iter stuff to mm/iov_iter.c
process_vm_access: tidy up a bit
...
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1002,7 +1002,7 @@ struct bio_map_data { | |||
1002 | }; | 1002 | }; |
1003 | 1003 | ||
1004 | static void bio_set_map_data(struct bio_map_data *bmd, struct bio *bio, | 1004 | static void bio_set_map_data(struct bio_map_data *bmd, struct bio *bio, |
1005 | struct sg_iovec *iov, int iov_count, | 1005 | const struct sg_iovec *iov, int iov_count, |
1006 | int is_our_pages) | 1006 | int is_our_pages) |
1007 | { | 1007 | { |
1008 | memcpy(bmd->sgvecs, iov, sizeof(struct sg_iovec) * iov_count); | 1008 | memcpy(bmd->sgvecs, iov, sizeof(struct sg_iovec) * iov_count); |
@@ -1022,7 +1022,7 @@ static struct bio_map_data *bio_alloc_map_data(int nr_segs, | |||
1022 | sizeof(struct sg_iovec) * iov_count, gfp_mask); | 1022 | sizeof(struct sg_iovec) * iov_count, gfp_mask); |
1023 | } | 1023 | } |
1024 | 1024 | ||
1025 | static int __bio_copy_iov(struct bio *bio, struct sg_iovec *iov, int iov_count, | 1025 | static int __bio_copy_iov(struct bio *bio, const struct sg_iovec *iov, int iov_count, |
1026 | int to_user, int from_user, int do_free_page) | 1026 | int to_user, int from_user, int do_free_page) |
1027 | { | 1027 | { |
1028 | int ret = 0, i; | 1028 | int ret = 0, i; |
@@ -1120,7 +1120,7 @@ EXPORT_SYMBOL(bio_uncopy_user); | |||
1120 | */ | 1120 | */ |
1121 | struct bio *bio_copy_user_iov(struct request_queue *q, | 1121 | struct bio *bio_copy_user_iov(struct request_queue *q, |
1122 | struct rq_map_data *map_data, | 1122 | struct rq_map_data *map_data, |
1123 | struct sg_iovec *iov, int iov_count, | 1123 | const struct sg_iovec *iov, int iov_count, |
1124 | int write_to_vm, gfp_t gfp_mask) | 1124 | int write_to_vm, gfp_t gfp_mask) |
1125 | { | 1125 | { |
1126 | struct bio_map_data *bmd; | 1126 | struct bio_map_data *bmd; |
@@ -1259,7 +1259,7 @@ EXPORT_SYMBOL(bio_copy_user); | |||
1259 | 1259 | ||
1260 | static struct bio *__bio_map_user_iov(struct request_queue *q, | 1260 | static struct bio *__bio_map_user_iov(struct request_queue *q, |
1261 | struct block_device *bdev, | 1261 | struct block_device *bdev, |
1262 | struct sg_iovec *iov, int iov_count, | 1262 | const struct sg_iovec *iov, int iov_count, |
1263 | int write_to_vm, gfp_t gfp_mask) | 1263 | int write_to_vm, gfp_t gfp_mask) |
1264 | { | 1264 | { |
1265 | int i, j; | 1265 | int i, j; |
@@ -1407,7 +1407,7 @@ EXPORT_SYMBOL(bio_map_user); | |||
1407 | * device. Returns an error pointer in case of error. | 1407 | * device. Returns an error pointer in case of error. |
1408 | */ | 1408 | */ |
1409 | struct bio *bio_map_user_iov(struct request_queue *q, struct block_device *bdev, | 1409 | struct bio *bio_map_user_iov(struct request_queue *q, struct block_device *bdev, |
1410 | struct sg_iovec *iov, int iov_count, | 1410 | const struct sg_iovec *iov, int iov_count, |
1411 | int write_to_vm, gfp_t gfp_mask) | 1411 | int write_to_vm, gfp_t gfp_mask) |
1412 | { | 1412 | { |
1413 | struct bio *bio; | 1413 | struct bio *bio; |