Skip to content

Commit 5166701

Browse files
committed
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 ...
2 parents 0a7418f + a786c06 commit 5166701

76 files changed

Lines changed: 911 additions & 1537 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/filesystems/Locking‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ prototypes:
202202
unsigned long *);
203203
int (*migratepage)(struct address_space *, struct page *, struct page *);
204204
int (*launder_page)(struct page *);
205-
int (*is_partially_uptodate)(struct page *, read_descriptor_t *, unsigned long);
205+
int (*is_partially_uptodate)(struct page *, unsigned long, unsigned long);
206206
int (*error_remove_page)(struct address_space *, struct page *);
207207
int (*swap_activate)(struct file *);
208208
int (*swap_deactivate)(struct file *);

‎Documentation/filesystems/vfs.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ struct address_space_operations {
596596
/* migrate the contents of a page to the specified target */
597597
int (*migratepage) (struct page *, struct page *);
598598
int (*launder_page) (struct page *);
599-
int (*is_partially_uptodate) (struct page *, read_descriptor_t *,
599+
int (*is_partially_uptodate) (struct page *, unsigned long,
600600
unsigned long);
601601
void (*is_dirty_writeback) (struct page *, bool *, bool *);
602602
int (*error_remove_page) (struct mapping *mapping, struct page *page);

‎arch/mn10300/include/asm/highmem.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static inline void kunmap(struct page *page)
7070
* be used in IRQ contexts, so in some (very limited) cases we need
7171
* it.
7272
*/
73-
static inline unsigned long kmap_atomic(struct page *page)
73+
static inline void *kmap_atomic(struct page *page)
7474
{
7575
unsigned long vaddr;
7676
int idx, type;
@@ -89,7 +89,7 @@ static inline unsigned long kmap_atomic(struct page *page)
8989
set_pte(kmap_pte - idx, mk_pte(page, kmap_prot));
9090
local_flush_tlb_one(vaddr);
9191

92-
return vaddr;
92+
return (void *)vaddr;
9393
}
9494

9595
static inline void __kunmap_atomic(unsigned long vaddr)

‎arch/powerpc/configs/ppc6xx_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,6 @@ CONFIG_DEBUG_SPINLOCK_SLEEP=y
12441244
CONFIG_DEBUG_HIGHMEM=y
12451245
CONFIG_DEBUG_INFO=y
12461246
CONFIG_DEBUG_VM=y
1247-
CONFIG_DEBUG_WRITECOUNT=y
12481247
CONFIG_DEBUG_LIST=y
12491248
CONFIG_DEBUG_SG=y
12501249
# CONFIG_RCU_CPU_STALL_DETECTOR is not set

‎arch/powerpc/configs/ps3_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ CONFIG_DETECT_HUNG_TASK=y
174174
CONFIG_PROVE_LOCKING=y
175175
CONFIG_DEBUG_LOCKDEP=y
176176
CONFIG_DEBUG_INFO=y
177-
CONFIG_DEBUG_WRITECOUNT=y
178177
CONFIG_DEBUG_MEMORY_INIT=y
179178
CONFIG_DEBUG_LIST=y
180179
CONFIG_RCU_CPU_STALL_TIMEOUT=60

‎arch/s390/configs/default_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,6 @@ CONFIG_LOCK_STAT=y
581581
CONFIG_DEBUG_LOCKDEP=y
582582
CONFIG_DEBUG_ATOMIC_SLEEP=y
583583
CONFIG_DEBUG_LOCKING_API_SELFTESTS=y
584-
CONFIG_DEBUG_WRITECOUNT=y
585584
CONFIG_DEBUG_LIST=y
586585
CONFIG_DEBUG_SG=y
587586
CONFIG_DEBUG_NOTIFIERS=y

‎arch/sh/configs/rsk7203_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ CONFIG_DEBUG_MUTEXES=y
128128
CONFIG_DEBUG_SPINLOCK_SLEEP=y
129129
CONFIG_DEBUG_INFO=y
130130
CONFIG_DEBUG_VM=y
131-
CONFIG_DEBUG_WRITECOUNT=y
132131
CONFIG_DEBUG_LIST=y
133132
CONFIG_DEBUG_SG=y
134133
CONFIG_FRAME_POINTER=y

‎arch/xtensa/configs/iss_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ CONFIG_SCHED_DEBUG=y
627627
# CONFIG_DEBUG_KOBJECT is not set
628628
# CONFIG_DEBUG_INFO is not set
629629
# CONFIG_DEBUG_VM is not set
630-
# CONFIG_DEBUG_WRITECOUNT is not set
631630
# CONFIG_DEBUG_MEMORY_INIT is not set
632631
# CONFIG_DEBUG_LIST is not set
633632
# CONFIG_DEBUG_SG is not set

‎arch/xtensa/configs/s6105_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,6 @@ CONFIG_DEBUG_SPINLOCK_SLEEP=y
569569
# CONFIG_DEBUG_INFO is not set
570570
# CONFIG_DEBUG_VM is not set
571571
CONFIG_DEBUG_NOMMU_REGIONS=y
572-
# CONFIG_DEBUG_WRITECOUNT is not set
573572
# CONFIG_DEBUG_MEMORY_INIT is not set
574573
# CONFIG_DEBUG_LIST is not set
575574
# CONFIG_DEBUG_SG is not set

‎block/blk-map.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ EXPORT_SYMBOL(blk_rq_map_user);
188188
* unmapping.
189189
*/
190190
int blk_rq_map_user_iov(struct request_queue *q, struct request *rq,
191-
struct rq_map_data *map_data, struct sg_iovec *iov,
191+
struct rq_map_data *map_data, const struct sg_iovec *iov,
192192
int iov_count, unsigned int len, gfp_t gfp_mask)
193193
{
194194
struct bio *bio;

0 commit comments

Comments
 (0)