Re: [PATCH] mtd: fix mtd_blkdevs problem with caches on somearchitectures (2.6.31)

From: Ingo Molnar
Date: Sun Nov 22 2009 - 08:29:57 EST



* Ilya Loginov <isloginov@xxxxxxxxx> wrote:

> What do you think about this version of patch?
> Is it good enought?
>
> Signed-off-by: Ilya Loginov <isloginov@xxxxxxxxx>
> ---
> arch/alpha/include/asm/cacheflush.h | 1 +
> arch/arm/include/asm/cacheflush.h | 1 +
> arch/avr32/include/asm/cacheflush.h | 1 +
> arch/blackfin/include/asm/cacheflush.h | 2 ++
> arch/cris/include/asm/cacheflush.h | 1 +
> arch/frv/include/asm/cacheflush.h | 1 +
> arch/h8300/include/asm/cacheflush.h | 1 +
> arch/ia64/include/asm/cacheflush.h | 1 +
> arch/m32r/include/asm/cacheflush.h | 3 +++
> arch/m68k/include/asm/cacheflush_mm.h | 1 +
> arch/m68k/include/asm/cacheflush_no.h | 1 +
> arch/microblaze/include/asm/cacheflush.h | 1 +
> arch/mips/include/asm/cacheflush.h | 1 +
> arch/mn10300/include/asm/cacheflush.h | 1 +
> arch/parisc/include/asm/cacheflush.h | 1 +
> arch/powerpc/include/asm/cacheflush.h | 1 +
> arch/s390/include/asm/cacheflush.h | 1 +
> arch/sh/include/asm/cacheflush.h | 1 +
> arch/sh/include/cpu-common/cpu/cacheflush.h | 1 +
> arch/sh/include/cpu-sh2a/cpu/cacheflush.h | 1 +
> arch/sh/include/cpu-sh3/cpu/cacheflush.h | 1 +
> arch/sh/include/cpu-sh4/cpu/cacheflush.h | 1 +
> arch/sh/include/cpu-sh5/cpu/cacheflush.h | 1 +
> arch/sparc/include/asm/cacheflush_32.h | 1 +
> arch/sparc/include/asm/cacheflush_64.h | 1 +
> arch/x86/include/asm/cacheflush.h | 1 +
> arch/xtensa/include/asm/cacheflush.h | 2 ++
> drivers/mtd/mtd_blkdevs.c | 2 ++
> include/linux/bio.h | 19 +++++++++++++++++++
> include/linux/blkdev.h | 18 ++++++++++++++++++
> 30 files changed, 70 insertions(+)

patch looks mangled in the middle:

> --- a/arch/x86/include/asm/cacheflush.h
> +++ b/arch/x86/include/asm/cacheflush.h
> @@ -12,6 +12,7 @@ static inline void flush_cache_range(struct
> vm_area_struct *vma, unsigned long start, unsigned long end) { }
> static inline void flush_cache_page(struct vm_area_struct *vma,
> unsigned long vmaddr, unsigned
> long pfn) { } +#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0
> static inline void flush_dcache_page(struct page *page) { }
> static inline void flush_dcache_mmap_lock(struct address_space
> *mapping) { } static inline void flush_dcache_mmap_unlock(struct
> address_space *mapping) { } diff --git

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/