diff options
author | David Howells <dhowells@redhat.com> | 2018-10-19 19:57:57 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-10-23 19:41:08 -0400 |
commit | 0067191201de0d1870ff692368900da5207daf2c (patch) | |
tree | 9c0c7f292b0b65eb2ffd8f99ec54045ede50d0dd | |
parent | 3b6492df4153b8550d347dfc581856138678a231 (diff) |
afs: Commit the status on a new file/dir/symlink
Call the function to commit the status on a new file, dir or symlink so
that the access rights for the caller's key are cached for that object.
Without this, the next access to the file will cause a FetchStatus
operation to be emitted to retrieve the access rights.
Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r-- | fs/afs/dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 024b7cf7441c..8936731c59ff 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c | |||
@@ -1089,6 +1089,7 @@ static void afs_vnode_new_inode(struct afs_fs_cursor *fc, | |||
1089 | 1089 | ||
1090 | vnode = AFS_FS_I(inode); | 1090 | vnode = AFS_FS_I(inode); |
1091 | set_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags); | 1091 | set_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags); |
1092 | afs_vnode_commit_status(fc, vnode, 0); | ||
1092 | d_add(new_dentry, inode); | 1093 | d_add(new_dentry, inode); |
1093 | } | 1094 | } |
1094 | 1095 | ||