diff options
author | Richard Weinberger <richard@nod.at> | 2015-03-24 10:47:38 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-04-13 15:01:07 -0400 |
commit | 0c9bd6365d0b278728359843b8303047ddedb831 (patch) | |
tree | 086abfcb95b657832d2e318ca5c3fa47822c8689 /fs/hostfs/hostfs.h | |
parent | a98a6d864d3b84219a6ec6213b00c260fb52f9f4 (diff) |
um: hostfs: Reduce number of syscalls in readdir
Currently hostfs issues every time a seekdir(), in fact
it has to do this only upon the first call.
Also telldir() can be omitted as we can obtain the directory
offset from readdir().
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/hostfs/hostfs.h')
-rw-r--r-- | fs/hostfs/hostfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h index 493262e43443..91e19f9dffe5 100644 --- a/fs/hostfs/hostfs.h +++ b/fs/hostfs/hostfs.h | |||
@@ -66,7 +66,8 @@ extern int stat_file(const char *path, struct hostfs_stat *p, int fd); | |||
66 | extern int access_file(char *path, int r, int w, int x); | 66 | extern int access_file(char *path, int r, int w, int x); |
67 | extern int open_file(char *path, int r, int w, int append); | 67 | extern int open_file(char *path, int r, int w, int append); |
68 | extern void *open_dir(char *path, int *err_out); | 68 | extern void *open_dir(char *path, int *err_out); |
69 | extern char *read_dir(void *stream, unsigned long long *pos, | 69 | extern void seek_dir(void *stream, unsigned long long pos); |
70 | extern char *read_dir(void *stream, unsigned long long *pos_out, | ||
70 | unsigned long long *ino_out, int *len_out, | 71 | unsigned long long *ino_out, int *len_out, |
71 | unsigned int *type_out); | 72 | unsigned int *type_out); |
72 | extern void close_file(void *stream); | 73 | extern void close_file(void *stream); |