]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfs: nfs_getattr() can't call nfs_sync_mapping_range() for non-regular files
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Fri, 16 Mar 2007 21:38:28 +0000 (13:38 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Mar 2007 19:49:23 +0000 (12:49 -0700)
commitcfbebe59ac6a56c1705388b127c5798197afc205
tree9a34335179a870ca4733bc3f0fed3cee796656a1
parent120d6d2e32028348c630abb1aa4a68a83dfe6d8e
nfs: nfs_getattr() can't call nfs_sync_mapping_range() for non-regular files

Looks like we need a check in nfs_getattr() for a regular file. It makes
no sense to call nfs_sync_mapping_range() on anything else. I think that
should fix your problem: it will stop the NFS client from interfering
with dirty pages on that inode's mapping.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/inode.c