diff options
author | David Howells <dhowells@redhat.com> | 2020-03-20 10:32:50 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-05-31 16:19:52 +0200 |
commit | a310082f6d0afe28797e148726cd52118a8a4428 (patch) | |
tree | 18bd14d3ea9f95b9b513e477012bdd4458e3b8b4 /fs/afs/inode.c | |
parent | afs: Remove the error argument from afs_protocol_error() (diff) | |
download | linux-a310082f6d0afe28797e148726cd52118a8a4428.tar.xz linux-a310082f6d0afe28797e148726cd52118a8a4428.zip |
afs: Rename struct afs_fs_cursor to afs_operation
As a prelude to implementing asynchronous fileserver operations in the afs
filesystem, rename struct afs_fs_cursor to afs_operation.
This struct is going to form the core of the operation management and is
going to acquire more members in later.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/inode.c')
-rw-r--r-- | fs/afs/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/afs/inode.c b/fs/afs/inode.c index 07933d106e0e..d2dbb3aef611 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c @@ -161,7 +161,7 @@ static int afs_inode_init_from_status(struct afs_vnode *vnode, struct key *key, /* * Update the core inode struct from a returned status record. */ -static void afs_apply_status(struct afs_fs_cursor *fc, +static void afs_apply_status(struct afs_operation *fc, struct afs_vnode *vnode, struct afs_status_cb *scb, const afs_dataversion_t *expected_version) @@ -243,7 +243,7 @@ static void afs_apply_status(struct afs_fs_cursor *fc, /* * Apply a callback to a vnode. */ -static void afs_apply_callback(struct afs_fs_cursor *fc, +static void afs_apply_callback(struct afs_operation *fc, struct afs_vnode *vnode, struct afs_status_cb *scb, unsigned int cb_break) @@ -267,7 +267,7 @@ static void afs_apply_callback(struct afs_fs_cursor *fc, * Apply the received status and callback to an inode all in the same critical * section to avoid races with afs_validate(). */ -void afs_vnode_commit_status(struct afs_fs_cursor *fc, +void afs_vnode_commit_status(struct afs_operation *fc, struct afs_vnode *vnode, unsigned int cb_break, const afs_dataversion_t *expected_version, @@ -304,7 +304,7 @@ int afs_fetch_status(struct afs_vnode *vnode, struct key *key, bool is_new, afs_access_t *_caller_access) { struct afs_status_cb *scb; - struct afs_fs_cursor fc; + struct afs_operation fc; int ret; _enter("%s,{%llx:%llu.%u,S=%lx}", @@ -813,7 +813,7 @@ void afs_evict_inode(struct inode *inode) */ int afs_setattr(struct dentry *dentry, struct iattr *attr) { - struct afs_fs_cursor fc; + struct afs_operation fc; struct afs_status_cb *scb; struct afs_vnode *vnode = AFS_FS_I(d_inode(dentry)); struct key *key; |