/[linux-patches]/genpatches-2.6/trunk/2.6.16/1900_nfs-utimes.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.16/1900_nfs-utimes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 479 - (show annotations) (download) (as text)
Mon May 29 14:43:41 2006 UTC (14 years, 5 months ago) by dsd
File MIME type: text/x-diff
File size: 1063 byte(s)
Fix utimes() behaviour on NFS
1 From: Trond Myklebust <Trond.Myklebust@netapp.com>
2 Date: Mon, 20 Mar 2006 18:44:06 +0000 (-0500)
3 Subject: NFS: writes should not clobber utimes() calls
4 X-Git-Tag: v2.6.17-rc1
5 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=755c1e20cd2ad56e5c567fa05769eb98a3eef72b
6
7 NFS: writes should not clobber utimes() calls
8
9 Ensure that we flush out writes in the case when someone calls utimes() in
10 order to set the file times.
11
12 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
13 ---
14
15 --- a/fs/nfs/inode.c
16 +++ b/fs/nfs/inode.c
17 @@ -859,11 +859,9 @@ nfs_setattr(struct dentry *dentry, struc
18
19 lock_kernel();
20 nfs_begin_data_update(inode);
21 - /* Write all dirty data if we're changing file permissions or size */
22 - if ((attr->ia_valid & (ATTR_MODE|ATTR_UID|ATTR_GID|ATTR_SIZE)) != 0) {
23 - filemap_write_and_wait(inode->i_mapping);
24 - nfs_wb_all(inode);
25 - }
26 + /* Write all dirty data */
27 + filemap_write_and_wait(inode->i_mapping);
28 + nfs_wb_all(inode);
29 /*
30 * Return any delegations if we're going to change ACLs
31 */

  ViewVC Help
Powered by ViewVC 1.1.20