afs: Wrap most op->error accesses with inline funcs
authorDavid Howells <dhowells@redhat.com>
Thu, 26 Oct 2023 08:43:23 +0000 (09:43 +0100)
committerDavid Howells <dhowells@redhat.com>
Sun, 24 Dec 2023 15:22:53 +0000 (15:22 +0000)
commit2de5599f63babb416e09b1a6be429a47910dd47c
treeb8f836e51db7681fbedf1e46b205d2441119f81d
parent075171fd22be33acf4ab354814bfa6de1c3412ce
afs: Wrap most op->error accesses with inline funcs

Wrap most op->error accesses with inline funcs which will make it easier
for a subsequent patch to replace op->error with something else.  Two
functions are added to this end:

 (1) afs_op_error() - Get the error code.

 (2) afs_op_set_error() - Set the error code.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
fs/afs/dir.c
fs/afs/file.c
fs/afs/fs_operation.c
fs/afs/fsclient.c
fs/afs/inode.c
fs/afs/internal.h
fs/afs/rotate.c
fs/afs/server.c
fs/afs/write.c