From 8195832c6cde7ebb2de5543be76979a111bd5712 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 22 Mar 2010 09:16:57 +0100 Subject: [PATCH] s3: file_walk_table -> files_forall This is more in line with the rest of the Samba code, like connections_forall etc. --- source3/include/proto.h | 2 +- source3/modules/vfs_aio_fork.c | 2 +- source3/smbd/files.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index 92008021283..69fd591057c 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6378,7 +6378,7 @@ void file_close_pid(uint16 smbpid, int vuid); void file_init(void); void file_close_user(int vuid); void file_dump_open_table(void); -struct files_struct *file_walk_table( +struct files_struct *files_forall( struct files_struct *(*fn)(struct files_struct *fsp, void *private_data), void *private_data); diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index c725fa6b906..ebad4b4c439 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -479,7 +479,7 @@ static NTSTATUS create_aio_child(struct aio_child_list *children, if (result->pid == 0) { close(fdpair[0]); result->sockfd = fdpair[1]; - file_walk_table(close_fsp_fd, NULL); + files_forall(close_fsp_fd, NULL); aio_child_loop(result->sockfd, result->map); } diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 6b8e96e7337..abd654c0154 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -222,7 +222,7 @@ void file_close_user(int vuid) * Walk the files table until "fn" returns non-NULL */ -struct files_struct *file_walk_table( +struct files_struct *files_forall( struct files_struct *(*fn)(struct files_struct *fsp, void *private_data), void *private_data) -- 2.34.1