Merge git://git.linux-nfs.org/pub/linux/nfs-2.6
* git://git.linux-nfs.org/pub/linux/nfs-2.6: NLM,NFSv4: Wait on local locks before we put RPC calls on the wire VFS: Add support for the FL_ACCESS flag to flock_lock_file() NFSv4: Ensure nfs4_lock_expired() caches delegated locks NLM,NFSv4: Don't put UNLOCK requests on the wire unless we hold a lock VFS: Allow caller to determine if BSD or posix locks were actually freed NFS: Optimise away an excessive GETATTR call when a file is symlinked This fixes a panic doing the first READDIR or READDIRPLUS call when: NFS: Fix NFS page_state usage Revert "Merge branch 'odirect'"
This commit is contained in:
@@ -191,7 +191,6 @@ _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--;
|
||||
}
|
||||
@@ -211,11 +210,11 @@ _shift_data_right_pages(struct page **pages, size_t pgto_base,
|
||||
vto = kmap_atomic(*pgto, KM_USER0);
|
||||
vfrom = kmap_atomic(*pgfrom, KM_USER1);
|
||||
memmove(vto + pgto_base, vfrom + pgfrom_base, copy);
|
||||
flush_dcache_page(*pgto);
|
||||
kunmap_atomic(vfrom, KM_USER1);
|
||||
kunmap_atomic(vto, KM_USER0);
|
||||
|
||||
} while ((len -= copy) != 0);
|
||||
flush_dcache_page(*pgto);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user