diff options
author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2005-01-04 21:36:01 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2005-01-04 21:36:01 +0100 |
commit | 3079e9c87c46a26d77fd781e8506044d924b4425 (patch) | |
tree | 091150a5c477d0aa8e2fd86ae09d7a0fb6dcbdaa /net | |
parent | a1df761e76639537e2961fc3475b50772ed1ab23 (diff) | |
download | history-3079e9c87c46a26d77fd781e8506044d924b4425.tar.gz |
RPC: Add missing calls to flush_dcache_page() in net/sunrpc/xdr.c
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/xdr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c index 0b42059378cb03..4484931018eb55 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c @@ -371,6 +371,7 @@ _shift_data_right_pages(struct page **pages, size_t pgto_base, do { /* Are any pointers crossing a page boundary? */ if (pgto_base == 0) { + flush_dcache_page(*pgto); pgto_base = PAGE_CACHE_SIZE; pgto--; } @@ -394,6 +395,7 @@ _shift_data_right_pages(struct page **pages, size_t pgto_base, kunmap_atomic(vto, KM_USER0); } while ((len -= copy) != 0); + flush_dcache_page(*pgto); } /* @@ -427,12 +429,14 @@ _copy_to_pages(struct page **pages, size_t pgbase, const char *p, size_t len) pgbase += copy; if (pgbase == PAGE_CACHE_SIZE) { + flush_dcache_page(*pgto); pgbase = 0; pgto++; } p += copy; } while ((len -= copy) != 0); + flush_dcache_page(*pgto); } /* |