export file_lookup_open
authorDmitry Monakhov <dmonakhov@openvz.org>
Wed, 19 Sep 2012 19:22:53 +0000 (23:22 +0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Sep 2012 19:31:38 +0000 (21:31 +0200)
generic_open_file is not always appropriate method, but other modules
may want to implement similar callback and use hash optimization.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
file.h
filesetup.c

diff --git a/file.h b/file.h
index 68f9a6eead88014e129c90f6e93abf191d22020f..42fd58c8d09bb3dd66e4b3d02694282db771c19b 100644 (file)
--- a/file.h
+++ b/file.h
@@ -153,6 +153,7 @@ extern int __must_check file_invalidate_cache(struct thread_data *, struct fio_f
 extern int __must_check generic_open_file(struct thread_data *, struct fio_file *);
 extern int __must_check generic_close_file(struct thread_data *, struct fio_file *);
 extern int __must_check generic_get_file_size(struct thread_data *, struct fio_file *);
 extern int __must_check generic_open_file(struct thread_data *, struct fio_file *);
 extern int __must_check generic_close_file(struct thread_data *, struct fio_file *);
 extern int __must_check generic_get_file_size(struct thread_data *, struct fio_file *);
+extern int __must_check file_lookup_open(struct fio_file *f, int flags);
 extern int __must_check pre_read_files(struct thread_data *);
 extern int add_file(struct thread_data *, const char *);
 extern int add_file_exclusive(struct thread_data *, const char *);
 extern int __must_check pre_read_files(struct thread_data *);
 extern int add_file(struct thread_data *, const char *);
 extern int add_file_exclusive(struct thread_data *, const char *);
index 64da8bb825e27732529ef69816f215a35a45d62f..06b7d7fc845cb9f041c03b16f983ffb564443896 100644 (file)
@@ -435,7 +435,7 @@ int generic_close_file(struct thread_data fio_unused *td, struct fio_file *f)
        return ret;
 }
 
        return ret;
 }
 
-static int file_lookup_open(struct fio_file *f, int flags)
+int file_lookup_open(struct fio_file *f, int flags)
 {
        struct fio_file *__f;
        int from_hash;
 {
        struct fio_file *__f;
        int from_hash;