History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net

Two easy cases of overlapping changes.

David S. Miller committed 7 years ago

Commit 8b448362 parents c049d56 cd8dead247 files · +1881 −715Browse files

Showing the changes to include/linux (8 of 247 files). Show all

Unified · Split

8 files
  1. include/linux/blkdev.h +0 −1
  2. include/linux/bvec.h +3 −2
  3. include/linux/efi.h +6 −1
  4. include/linux/elevator.h +1 −0
  5. include/linux/etherdevice.h +12 −0
  6. include/linux/kprobes.h +1 −0
  7. include/linux/sched/mm.h +21 −0
  8. include/linux/shmem_fs.h +1 −0
include/linux/blkdev.h+0−1
@@ -548,7 +548,6 @@ struct request_queue { · 547 unmodified lines
548548 struct rcu_head rcu_head;
549549 wait_queue_head_t mq_freeze_wq;
550550 struct percpu_ref q_usage_counter;
551− struct list_head all_q_node;
552551
553552 struct blk_mq_tag_set *tag_set;
554553 struct list_head tag_set_list;
include/linux/bvec.h+3−2
@@ -160,8 +160,9 @@ static inline void bvec_advance(const struct bio_vec *bvec, · 159 unmodified lines
160160 bv->bv_page = nth_page(bv->bv_page, 1);
161161 bv->bv_offset = 0;
162162 } else {
163− bv->bv_page = bvec->bv_page;
164− bv->bv_offset = bvec->bv_offset;
163+ bv->bv_page = bvec_nth_page(bvec->bv_page, bvec->bv_offset /
164+ PAGE_SIZE);
165+ bv->bv_offset = bvec->bv_offset & ~PAGE_MASK;
165166 }
166167 bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset,
167168 bvec->bv_len - iter_all->done);
include/linux/efi.h+6−1
@@ -1611,7 +1611,12 @@ efi_status_t efi_setup_gop(efi_system_table_t *sys_table_arg, · 1610 unmodified lines
16111611 struct screen_info *si, efi_guid_t *proto,
16121612 unsigned long size);
16131613
1614−bool efi_runtime_disabled(void);
1614+#ifdef CONFIG_EFI
1615+extern bool efi_runtime_disabled(void);
1616+#else
1617+static inline bool efi_runtime_disabled(void) { return true; }
1618+#endif
1619+
16151620 extern void efi_call_virt_check_flags(unsigned long flags, const char *call);
16161621 extern unsigned long efi_call_virt_save_flags(void);
16171622
include/linux/elevator.h+1−0
@@ -31,6 +31,7 @@ struct elevator_mq_ops { · 30 unmodified lines
3131 void (*exit_sched)(struct elevator_queue *);
3232 int (*init_hctx)(struct blk_mq_hw_ctx *, unsigned int);
3333 void (*exit_hctx)(struct blk_mq_hw_ctx *, unsigned int);
34+ void (*depth_updated)(struct blk_mq_hw_ctx *);
3435
3536 bool (*allow_merge)(struct request_queue *, struct request *, struct bio *);
3637 bool (*bio_merge)(struct blk_mq_hw_ctx *, struct bio *);
include/linux/etherdevice.h+12−0
@@ -448,6 +448,18 @@ static inline void eth_addr_dec(u8 *addr) · 447 unmodified lines
448448 u64_to_ether_addr(u, addr);
449449 }
450450
451+/**
452+ * eth_addr_inc() - Increment the given MAC address.
453+ * @addr: Pointer to a six-byte array containing Ethernet address to increment.
454+ */
455+static inline void eth_addr_inc(u8 *addr)
456+{
457+ u64 u = ether_addr_to_u64(addr);
458+
459+ u++;
460+ u64_to_ether_addr(u, addr);
461+}
462+
451463 /**
452464 * is_etherdev_addr - Tell if given Ethernet address belongs to the device.
453465 * @dev: Pointer to a device structure
include/linux/kprobes.h+1−0
@@ -173,6 +173,7 @@ struct kretprobe_instance { · 172 unmodified lines
173173 struct kretprobe *rp;
174174 kprobe_opcode_t *ret_addr;
175175 struct task_struct *task;
176+ void *fp;
176177 char data[0];
177178 };
178179
include/linux/sched/mm.h+21−0
@@ -49,6 +49,27 @@ static inline void mmdrop(struct mm_struct *mm) · 48 unmodified lines
4949 __mmdrop(mm);
5050 }
5151
52+/*
53+ * This has to be called after a get_task_mm()/mmget_not_zero()
54+ * followed by taking the mmap_sem for writing before modifying the
55+ * vmas or anything the coredump pretends not to change from under it.
56+ *
57+ * NOTE: find_extend_vma() called from GUP context is the only place
58+ * that can modify the "mm" (notably the vm_start/end) under mmap_sem
59+ * for reading and outside the context of the process, so it is also
60+ * the only case that holds the mmap_sem for reading that must call
61+ * this function. Generally if the mmap_sem is hold for reading
62+ * there's no need of this check after get_task_mm()/mmget_not_zero().
63+ *
64+ * This function can be obsoleted and the check can be removed, after
65+ * the coredump code will hold the mmap_sem for writing before
66+ * invoking the ->core_dump methods.
67+ */
68+static inline bool mmget_still_valid(struct mm_struct *mm)
69+{
70+ return likely(!mm->core_state);
71+}
72+
5273 /**
5374 * mmget() - Pin the address space associated with a &struct mm_struct.
5475 * @mm: The address space to pin.
include/linux/shmem_fs.h+1−0
@@ -21,6 +21,7 @@ struct shmem_inode_info { · 20 unmodified lines
2121 struct list_head swaplist; /* chain of maybes on swap */
2222 struct shared_policy policy; /* NUMA memory alloc policy */
2323 struct simple_xattrs xattrs; /* list of xattrs */
24+ atomic_t stop_eviction; /* hold when working on inode */
2425 struct inode vfs_inode;
2526 };
2627

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t