]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] NFS: Fix the file size revalidation
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 22 Jun 2005 17:16:30 +0000 (17:16 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 22 Jun 2005 20:07:36 +0000 (16:07 -0400)
commit951a143b3fcf15cfa9d38250b7462f821db241db
tree6e4ea13c5f48cc3e1ac1c8649dd0f9f20c502e20
parent08e9eac42edab63bce14b5c8419771f3c92aa3f4
[PATCH] NFS: Fix the file size revalidation

 Instead of looking at whether or not the file is open for writes before
 we accept to update the length using the server value, we should rather
 be looking at whether or not we are currently caching any writes.

 Failure to do so means in particular that we're not updating the file
 length correctly after obtaining a POSIX or BSD lock.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c
fs/nfs/inode.c
fs/nfs/write.c
include/linux/nfs_fs.h