commit | 1ab450b035f18aca5bb219ba3de45ca04e2df2b9 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Mon Jan 21 21:04:16 2008 +0200 |
committer | Adrian Bunk <bunk@kernel.org> | Mon Jan 21 21:04:16 2008 +0200 |
tree | f87969db81cf2c421fe7116a340488b921a6ccbf | |
parent | 83005c1cb725c489abba78e08908d76bb248ef82 [diff] |
NFS: call nfs_wb_all() only on regular files It looks like nfs_setattr() and nfs_rename() also need to test whether the target is a regular file before calling nfs_wb_all()... It isn't technically needed since the version of nfs_wb_all() that exists on 2.6.16 should be safe to call on non-regular files (it will be a no-op). However it is a useful optimisation. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Adrian Bunk <bunk@kernel.org>