The patch titled reiserfs: add missing D-cache flushing has been added to the -mm tree. Its filename is reiserfs-add-missing-d-cache-flushing.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: reiserfs: add missing D-cache flushing From: Alexey Dobriyan <adobriyan@xxxxxxxxxx> Looks like, reiserfs_prepare_file_region_for_write() doesn't contain several flush_dcache_page() calls. Found with help from Dmitriy Monakhov <dmonakhov@xxxxxxxxxx> Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxxx> Cc: Dmitriy Monakhov <dmonakhov@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/reiserfs/file.c | 4 ++++ 1 files changed, 4 insertions(+) diff -puN fs/reiserfs/file.c~reiserfs-add-missing-d-cache-flushing fs/reiserfs/file.c --- a/fs/reiserfs/file.c~reiserfs-add-missing-d-cache-flushing +++ a/fs/reiserfs/file.c @@ -1043,6 +1043,7 @@ static int reiserfs_prepare_file_region_ if (from != 0) { /* First page needs to be partially zeroed */ char *kaddr = kmap_atomic(prepared_pages[0], KM_USER0); memset(kaddr, 0, from); + flush_dcache_page(prepared_pages[0]); kunmap_atomic(kaddr, KM_USER0); } if (to != PAGE_CACHE_SIZE) { /* Last page needs to be partially zeroed */ @@ -1050,6 +1051,7 @@ static int reiserfs_prepare_file_region_ kmap_atomic(prepared_pages[num_pages - 1], KM_USER0); memset(kaddr + to, 0, PAGE_CACHE_SIZE - to); + flush_dcache_page(prepared_pages[num_pages - 1]); kunmap_atomic(kaddr, KM_USER0); } @@ -1183,6 +1185,7 @@ static int reiserfs_prepare_file_region_ KM_USER0); memset(kaddr + block_start, 0, from - block_start); + flush_dcache_page(prepared_pages[0]); kunmap_atomic(kaddr, KM_USER0); set_buffer_uptodate(bh); } @@ -1220,6 +1223,7 @@ static int reiserfs_prepare_file_region_ [num_pages - 1], KM_USER0); memset(kaddr + to, 0, block_end - to); + flush_dcache_page(prepared_pages[num_pages - 1]); kunmap_atomic(kaddr, KM_USER0); set_buffer_uptodate(bh); } _ Patches currently in -mm which might be from adobriyan@xxxxxxxxxx are origin.patch reiserfs-add-missing-d-cache-flushing.patch reiserfs-add-missing-d-cache-flushing-tweak.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html