diff options
author | Richard Weinberger <richard@nod.at> | 2015-03-24 15:47:38 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-04-13 21:01:07 +0200 |
commit | 0c9bd6365d0b278728359843b8303047ddedb831 (patch) | |
tree | 086abfcb95b657832d2e318ca5c3fa47822c8689 /fs/hostfs/hostfs.h | |
parent | um: Remove broken highmem support (diff) | |
download | linux-0c9bd6365d0b278728359843b8303047ddedb831.tar.xz linux-0c9bd6365d0b278728359843b8303047ddedb831.zip |
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); extern int access_file(char *path, int r, int w, int x); extern int open_file(char *path, int r, int w, int append); extern void *open_dir(char *path, int *err_out); -extern char *read_dir(void *stream, unsigned long long *pos, +extern void seek_dir(void *stream, unsigned long long pos); +extern char *read_dir(void *stream, unsigned long long *pos_out, unsigned long long *ino_out, int *len_out, unsigned int *type_out); extern void close_file(void *stream); |