From: Michael Vrable Date: Wed, 11 Aug 2010 20:15:14 +0000 (-0700) Subject: Newly-created inodes should be marked as modified. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=0e22463e61ea70d8143769b28e908668f6a01e3f;p=bluesky.git Newly-created inodes should be marked as modified. The NFS proxy code previously didn't do this, with the result that some inodes (symlinks were first noticed, but the problem affected other areas too) would not get entered into the appropriate LRU lists. --- diff --git a/nfs3/nfs3.c b/nfs3/nfs3.c index 2a5b789..7662a2c 100644 --- a/nfs3/nfs3.c +++ b/nfs3/nfs3.c @@ -489,6 +489,7 @@ void nfsproc3_create_3_svc(create3args *argp, RPCRequest *req) bluesky_directory_insert(dir, argp->where.name, file->inum); bluesky_inode_update_ctime(dir, TRUE); + bluesky_inode_update_ctime(file, FALSE); wcc.after.present = TRUE; encode_fattr3(&wcc.after.post_op_attr_u.attributes, dir); @@ -564,6 +565,7 @@ void nfsproc3_mkdir_3_svc(mkdir3args *argp, RPCRequest *req) set_attributes(file, &argp->attributes); bluesky_inode_update_ctime(dir, TRUE); + bluesky_inode_update_ctime(file, FALSE); wcc.after.present = TRUE; encode_fattr3(&wcc.after.post_op_attr_u.attributes, dir); @@ -637,6 +639,7 @@ void nfsproc3_symlink_3_svc(symlink3args *argp, RPCRequest *req) bluesky_directory_insert(dir, argp->where.name, file->inum); bluesky_inode_update_ctime(dir, TRUE); + bluesky_inode_update_ctime(file, FALSE); wcc.after.present = TRUE; encode_fattr3(&wcc.after.post_op_attr_u.attributes, dir);