summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-22 09:16:57 +0100
committerVolker Lendecke <vl@samba.org>2010-03-22 09:30:51 +0100
commit8195832c6cde7ebb2de5543be76979a111bd5712 (patch)
tree12bbaa175d7906bc4d2d682efacd1b0af37ab11c /source3
parent678815081da171e10123b1f6768a554adc1bedb4 (diff)
downloadsamba-8195832c6cde7ebb2de5543be76979a111bd5712.tar.gz
samba-8195832c6cde7ebb2de5543be76979a111bd5712.tar.bz2
samba-8195832c6cde7ebb2de5543be76979a111bd5712.zip
s3: file_walk_table -> files_forall
This is more in line with the rest of the Samba code, like connections_forall etc.
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/modules/vfs_aio_fork.c2
-rw-r--r--source3/smbd/files.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 9200802128..69fd591057 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 c725fa6b90..ebad4b4c43 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 6b8e96e733..abd654c015 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)