X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Fcacheflush.h;h=048ed44dbce72fb8a87647dd1beca693cc21c2f8;hb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;hp=0e053301c09f185eec4d503c7e42101a61af9dd8;hpb=c449269f45c2cdf53af08c8d0af37472f66539d9;p=linux-2.6.git diff --git a/include/asm-arm/cacheflush.h b/include/asm-arm/cacheflush.h index 0e053301c..048ed44db 100644 --- a/include/asm-arm/cacheflush.h +++ b/include/asm-arm/cacheflush.h @@ -291,17 +291,12 @@ flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr) * about to change to user space. This is the same method as used on SPARC64. * See update_mmu_cache for the user space part. */ -extern void __flush_dcache_page(struct page *); +extern void flush_dcache_page(struct page *); -static inline void flush_dcache_page(struct page *page) -{ - struct address_space *mapping = page_mapping(page); - - if (mapping && !mapping_mapped(mapping)) - set_bit(PG_dcache_dirty, &page->flags); - else - __flush_dcache_page(page); -} +#define flush_dcache_mmap_lock(mapping) \ + spin_lock_irq(&(mapping)->tree_lock) +#define flush_dcache_mmap_unlock(mapping) \ + spin_unlock_irq(&(mapping)->tree_lock) #define flush_icache_user_range(vma,page,addr,len) \ flush_dcache_page(page)