Merge branch 'kmap_atomic' of git://github.com/congwang/linux
Pull final kmap_atomic cleanups from Cong Wang: "This should be the final round of cleanup, as the definitions of enum km_type finally get removed from the whole tree. The patches have been in linux-next for a long time." * 'kmap_atomic' of git://github.com/congwang/linux: pipe: remove KM_USER0 from comments vmalloc: remove KM_USER0 from comments feature-removal-schedule.txt: remove kmap_atomic(page, km_type) tile: remove km_type definitions um: remove km_type definitions asm-generic: remove km_type definitions avr32: remove km_type definitions frv: remove km_type definitions powerpc: remove km_type definitions arm: remove km_type definitions highmem: remove the deprecated form of kmap_atomic tile: remove usage of enum km_type frv: remove the second parameter of kmap_atomic_primary() jbd2: remove the second argument of kmap_atomic
这个提交包含在:
@@ -23,35 +23,6 @@
|
||||
* adds 4MB of required address-space. For now we leave KM_TYPE_NR
|
||||
* set to depth 8.
|
||||
*/
|
||||
enum km_type {
|
||||
KM_TYPE_NR = 8
|
||||
};
|
||||
|
||||
/*
|
||||
* We provide dummy definitions of all the stray values that used to be
|
||||
* required for kmap_atomic() and no longer are.
|
||||
*/
|
||||
enum {
|
||||
KM_BOUNCE_READ,
|
||||
KM_SKB_SUNRPC_DATA,
|
||||
KM_SKB_DATA_SOFTIRQ,
|
||||
KM_USER0,
|
||||
KM_USER1,
|
||||
KM_BIO_SRC_IRQ,
|
||||
KM_BIO_DST_IRQ,
|
||||
KM_PTE0,
|
||||
KM_PTE1,
|
||||
KM_IRQ0,
|
||||
KM_IRQ1,
|
||||
KM_SOFTIRQ0,
|
||||
KM_SOFTIRQ1,
|
||||
KM_SYNC_ICACHE,
|
||||
KM_SYNC_DCACHE,
|
||||
KM_UML_USERCOPY,
|
||||
KM_IRQ_PTE,
|
||||
KM_NMI,
|
||||
KM_NMI_PTE,
|
||||
KM_KDB
|
||||
};
|
||||
#define KM_TYPE_NR 8
|
||||
|
||||
#endif /* _ASM_TILE_KMAP_TYPES_H */
|
||||
|
@@ -93,7 +93,7 @@ static DEFINE_PER_CPU(struct kmap_amps, amps);
|
||||
* If we examine it earlier we are exposed to a race where it looks
|
||||
* writable earlier, but becomes immutable before we write the PTE.
|
||||
*/
|
||||
static void kmap_atomic_register(struct page *page, enum km_type type,
|
||||
static void kmap_atomic_register(struct page *page, int type,
|
||||
unsigned long va, pte_t *ptep, pte_t pteval)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
在新工单中引用
屏蔽一个用户