diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2018-06-22 08:48:30 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2019-09-12 08:59:40 -0400 |
commit | 79d96efffda7597b41968d5d8813b39fc2965f1b (patch) | |
tree | a45172ead5c812a5f2dc0f649dd97a2dcb1f7627 | |
parent | 95a84cdb11c26315a6d34664846f82c438c961a1 (diff) |
fuse: export fuse_get_unique()
virtio-fs will need unique IDs for FORGET requests from outside
fs/fuse/dev.c. Make the symbol visible.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
-rw-r--r-- | fs/fuse/dev.c | 3 | ||||
-rw-r--r-- | fs/fuse/fuse_i.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 8f36e6485bb2..151176a99dc2 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -189,11 +189,12 @@ unsigned int fuse_len_args(unsigned int numargs, struct fuse_arg *args) | |||
189 | } | 189 | } |
190 | EXPORT_SYMBOL_GPL(fuse_len_args); | 190 | EXPORT_SYMBOL_GPL(fuse_len_args); |
191 | 191 | ||
192 | static u64 fuse_get_unique(struct fuse_iqueue *fiq) | 192 | u64 fuse_get_unique(struct fuse_iqueue *fiq) |
193 | { | 193 | { |
194 | fiq->reqctr += FUSE_REQ_ID_STEP; | 194 | fiq->reqctr += FUSE_REQ_ID_STEP; |
195 | return fiq->reqctr; | 195 | return fiq->reqctr; |
196 | } | 196 | } |
197 | EXPORT_SYMBOL_GPL(fuse_get_unique); | ||
197 | 198 | ||
198 | static unsigned int fuse_req_hash(u64 unique) | 199 | static unsigned int fuse_req_hash(u64 unique) |
199 | { | 200 | { |
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 7192080a06d0..b868b71d47d9 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -977,4 +977,9 @@ int fuse_readdir(struct file *file, struct dir_context *ctx); | |||
977 | */ | 977 | */ |
978 | unsigned int fuse_len_args(unsigned int numargs, struct fuse_arg *args); | 978 | unsigned int fuse_len_args(unsigned int numargs, struct fuse_arg *args); |
979 | 979 | ||
980 | /** | ||
981 | * Get the next unique ID for a request | ||
982 | */ | ||
983 | u64 fuse_get_unique(struct fuse_iqueue *fiq); | ||
984 | |||
980 | #endif /* _FS_FUSE_I_H */ | 985 | #endif /* _FS_FUSE_I_H */ |