diff options
author | David Howells <dhowells@redhat.com> | 2020-03-20 09:32:50 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-05-31 15:19:52 +0100 |
commit | a310082f6d0afe28797e148726cd52118a8a4428 (patch) | |
tree | 18bd14d3ea9f95b9b513e477012bdd4458e3b8b4 /fs/afs/server.c | |
parent | 7126ead910aa9fcc9e16e9e7a8c9179658261f1d (diff) | |
download | linux-a310082f6d0afe28797e148726cd52118a8a4428.tar.gz linux-a310082f6d0afe28797e148726cd52118a8a4428.tar.bz2 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/server.c')
-rw-r--r-- | fs/afs/server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/afs/server.c b/fs/afs/server.c index 5ed90f419c54..3008f2ecfeee 100644 --- a/fs/afs/server.c +++ b/fs/afs/server.c @@ -571,7 +571,7 @@ void afs_purge_servers(struct afs_net *net) /* * Get an update for a server's address list. */ -static noinline bool afs_update_server_record(struct afs_fs_cursor *fc, struct afs_server *server) +static noinline bool afs_update_server_record(struct afs_operation *fc, struct afs_server *server) { struct afs_addr_list *alist, *discard; @@ -585,7 +585,7 @@ static noinline bool afs_update_server_record(struct afs_fs_cursor *fc, struct a if (IS_ERR(alist)) { if ((PTR_ERR(alist) == -ERESTARTSYS || PTR_ERR(alist) == -EINTR) && - !(fc->flags & AFS_FS_CURSOR_INTR) && + !(fc->flags & AFS_OPERATION_INTR) && server->addresses) { _leave(" = t [intr]"); return true; @@ -613,7 +613,7 @@ static noinline bool afs_update_server_record(struct afs_fs_cursor *fc, struct a /* * See if a server's address list needs updating. */ -bool afs_check_server_record(struct afs_fs_cursor *fc, struct afs_server *server) +bool afs_check_server_record(struct afs_operation *fc, struct afs_server *server) { bool success; int ret, retries = 0; @@ -642,7 +642,7 @@ update: wait: ret = wait_on_bit(&server->flags, AFS_SERVER_FL_UPDATING, - (fc->flags & AFS_FS_CURSOR_INTR) ? + (fc->flags & AFS_OPERATION_INTR) ? TASK_INTERRUPTIBLE : TASK_UNINTERRUPTIBLE); if (ret == -ERESTARTSYS) { fc->error = ret; |