History

Merge branch 'akpm' (patches from Andrew)

Merge fixes from Andrew Morton: "26 fixes" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (26 commits) userfaultfd: remove wrong comment from userfaultfd_ctx_get() fat: fix using uninitialized fields of fat_inode/fsinfo_inode sh: cayman: IDE support fix kasan: fix races in quarantine_remove_cache() kasan: resched in quarantine_remove_cache() mm: do not call mem_cgroup_free() from within mem_cgroup_alloc() thp: fix another corner case of munlock() vs. THPs rmap: fix NULL-pointer dereference on THP munlocking mm/memblock.c: fix memblock_next_valid_pfn() userfaultfd: selftest: vm: allow to build in vm/ directory userfaultfd: non-cooperative: userfaultfd_remove revalidate vma in MADV_DONTNEED userfaultfd: non-cooperative: fix fork fctx->new memleak mm/cgroup: avoid panic when init with low memory drivers/md/bcache/util.h: remove duplicate inclusion of blkdev.h mm/vmstats: add thp_split_pud event for clarity include/linux/fs.h: fix unsigned enum warning with gcc-4.2 userfaultfd: non-cooperative: release all ctx in dup_userfaultfd_complete userfaultfd: non-cooperative: robustness check userfaultfd: non-cooperative: rollback userfaultfd_exit x86, mm: unify exit paths in gup_pte_range() ...

Linus Torvalds committed 9 years ago

Commit 8fe3cca2 parents 9db61d6 2378cd654 files · +277 −185Browse files

Showing the changes to include (7 of 54 files). Show all

Unified · Split

7 files
  1. include/dt-bindings/sound/cs42l42.h +1 −1
  2. include/linux/fs.h +1 −1
  3. include/linux/regulator/machine.h +1 −1
  4. include/linux/userfaultfd_k.h +3 −10
  5. include/linux/vm_event_item.h +3 −0
  6. include/net/irda/timer.h +1 −1
  7. include/uapi/linux/userfaultfd.h +1 −4
include/dt-bindings/sound/cs42l42.h+1−1
@@ -20,7 +20,7 @@ · 19 unmodified lines
2020 #define CS42L42_HPOUT_LOAD_1NF 0
2121 #define CS42L42_HPOUT_LOAD_10NF 1
2222
23−/* HPOUT Clamp to GND Overide */
23+/* HPOUT Clamp to GND Override */
2424 #define CS42L42_HPOUT_CLAMP_EN 0
2525 #define CS42L42_HPOUT_CLAMP_DIS 1
2626
include/linux/fs.h+1−1
@@ -2678,7 +2678,7 @@ static const char * const kernel_read_file_str[] = { · 2677 unmodified lines
26782678
26792679 static inline const char *kernel_read_file_id_str(enum kernel_read_file_id id)
26802680 {
2681− if (id < 0 || id >= READING_MAX_ID)
2681+ if ((unsigned)id >= READING_MAX_ID)
26822682 return kernel_read_file_str[READING_UNKNOWN];
26832683
26842684 return kernel_read_file_str[id];
include/linux/regulator/machine.h+1−1
@@ -65,7 +65,7 @@ struct regulator_state { · 64 unmodified lines
6565 int uV; /* suspend voltage */
6666 unsigned int mode; /* suspend regulator operating mode */
6767 int enabled; /* is regulator enabled in this suspend state */
68− int disabled; /* is the regulator disbled in this suspend state */
68+ int disabled; /* is the regulator disabled in this suspend state */
6969 };
7070
7171 /**
include/linux/userfaultfd_k.h+3−10
@@ -61,8 +61,7 @@ extern void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx *, · 60 unmodified lines
6161 unsigned long from, unsigned long to,
6262 unsigned long len);
6363
64−extern void userfaultfd_remove(struct vm_area_struct *vma,
65− struct vm_area_struct **prev,
64+extern bool userfaultfd_remove(struct vm_area_struct *vma,
6665 unsigned long start,
6766 unsigned long end);
6867
@@ -72,8 +71,6 @@ extern int userfaultfd_unmap_prep(struct vm_area_struct *vma, · 3 unmodified lines
7271 extern void userfaultfd_unmap_complete(struct mm_struct *mm,
7372 struct list_head *uf);
7473
75−extern void userfaultfd_exit(struct mm_struct *mm);
76−
7774 #else /* CONFIG_USERFAULTFD */
7875
7976 /* mm helpers */
@@ -120,11 +117,11 @@ static inline void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx *ctx, · 40 unmodified lines
120117 {
121118 }
122119
123−static inline void userfaultfd_remove(struct vm_area_struct *vma,
124− struct vm_area_struct **prev,
120+static inline bool userfaultfd_remove(struct vm_area_struct *vma,
125121 unsigned long start,
126122 unsigned long end)
127123 {
124+ return true;
128125 }
129126
130127 static inline int userfaultfd_unmap_prep(struct vm_area_struct *vma,
@@ -139,10 +136,6 @@ static inline void userfaultfd_unmap_complete(struct mm_struct *mm, · 8 unmodified lines
139136 {
140137 }
141138
142−static inline void userfaultfd_exit(struct mm_struct *mm)
143−{
144−}
145−
146139 #endif /* CONFIG_USERFAULTFD */
147140
148141 #endif /* _LINUX_USERFAULTFD_K_H */
include/linux/vm_event_item.h+3−0
@@ -79,6 +79,9 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, · 78 unmodified lines
7979 THP_SPLIT_PAGE_FAILED,
8080 THP_DEFERRED_SPLIT_PAGE,
8181 THP_SPLIT_PMD,
82+#ifdef CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD
83+ THP_SPLIT_PUD,
84+#endif
8285 THP_ZERO_PAGE_ALLOC,
8386 THP_ZERO_PAGE_ALLOC_FAILED,
8487 #endif
include/net/irda/timer.h+1−1
@@ -59,7 +59,7 @@ struct lap_cb; · 58 unmodified lines
5959 * Slot timer must never exceed 85 ms, and must always be at least 25 ms,
6060 * suggested to 75-85 msec by IrDA lite. This doesn't work with a lot of
6161 * devices, and other stackes uses a lot more, so it's best we do it as well
62− * (Note : this is the default value and sysctl overides it - Jean II)
62+ * (Note : this is the default value and sysctl overrides it - Jean II)
6363 */
6464 #define SLOT_TIMEOUT (90*HZ/1000)
6565
include/uapi/linux/userfaultfd.h+1−4
@@ -18,8 +18,7 @@ · 17 unmodified lines
1818 * means the userland is reading).
1919 */
2020 #define UFFD_API ((__u64)0xAA)
21−#define UFFD_API_FEATURES (UFFD_FEATURE_EVENT_EXIT | \
22− UFFD_FEATURE_EVENT_FORK | \
21+#define UFFD_API_FEATURES (UFFD_FEATURE_EVENT_FORK | \
2322 UFFD_FEATURE_EVENT_REMAP | \
2423 UFFD_FEATURE_EVENT_REMOVE | \
2524 UFFD_FEATURE_EVENT_UNMAP | \
@@ -113,7 +112,6 @@ struct uffd_msg { · 87 unmodified lines
113112 #define UFFD_EVENT_REMAP 0x14
114113 #define UFFD_EVENT_REMOVE 0x15
115114 #define UFFD_EVENT_UNMAP 0x16
116−#define UFFD_EVENT_EXIT 0x17
117115
118116 /* flags for UFFD_EVENT_PAGEFAULT */
119117 #define UFFD_PAGEFAULT_FLAG_WRITE (1<<0) /* If this was a write fault */
@@ -163,7 +161,6 @@ struct uffdio_api { · 43 unmodified lines
163161 #define UFFD_FEATURE_MISSING_HUGETLBFS (1<<4)
164162 #define UFFD_FEATURE_MISSING_SHMEM (1<<5)
165163 #define UFFD_FEATURE_EVENT_UNMAP (1<<6)
166−#define UFFD_FEATURE_EVENT_EXIT (1<<7)
167164 __u64 features;
168165
169166 __u64 ioctls;

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