Skip to contentSkip to conversation

filemap_sync over-eager at flushing?

DISCUSSION Russell King 1 participant 1 message Aug 29, 2000 Memory management

lore
Share & tools
lore
#0 lore raw

Hi,

I've been looking at the TLB/Cache code in 2.4.0-test7 (prompted by Dave Millers description in test8-pre1), and have come across something odd:

filemap_sync() calls flush_{cache,tlb}_range(). In between, it eventually calls filemap_sync_pte(), which uses flush_{cache,tlb}_page(). But hang on, we've already done flush_cache_range(), and are going to do flush_tlb_range() in filemap_sync(), so isn't the flush_{cache,tlb}_page rather unnecessary?
_____

  |_____| ------------------------------------------------- ---+---+-
  |   |         Russell King        [email protected]      --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html   /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/