s3: file_walk_table -> files_forall
authorVolker Lendecke <vl@samba.org>
Mon, 22 Mar 2010 08:16:57 +0000 (09:16 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 22 Mar 2010 16:48:00 +0000 (17:48 +0100)
This is more in line with the rest of the Samba code, like connections_forall
etc.

source3/include/proto.h
source3/modules/vfs_aio_fork.c
source3/smbd/files.c

index e06ffbf564e1ea2a50bd1ed15e7bc0e91573b8b7..e39ae70dc69678575db2d4e3ce86d5518a6d4efd 100644 (file)
@@ -6396,7 +6396,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);
index 578059ab9d2f73104b4041c8389906f497c34f9e..42a0526371566b9fb3fad568b2cb88352bd3793a 100644 (file)
@@ -476,7 +476,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);
        }
 
index d79f548701a76e0a9be2ccf2647277c3cfeb7752..385e9f91d09c48f0bd6e0451f75797caad7c28b7 100644 (file)
@@ -208,7 +208,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)