diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index a8d8524864365346384c730eefdefe96ed68c27d..8d96ea22305232c29ef992881f52df8fc4844691 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -322,10 +322,11 @@ unsigned fuse_len_args(unsigned numargs, struct fuse_arg *args) } EXPORT_SYMBOL_GPL(fuse_len_args); -static u64 fuse_get_unique(struct fuse_iqueue *fiq) +u64 fuse_get_unique(struct fuse_iqueue *fiq) { return ++fiq->reqctr; } +EXPORT_SYMBOL_GPL(fuse_get_unique); /** * A new request is available, wake fiq->waitq diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index c4f900a4411e0418dfba5709b138c06d5efe6254..b151f231eff67bf4d6c76bc2f13c9fe5c0f65fbc 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -1089,4 +1089,9 @@ int fuse_set_acl(struct inode *inode, struct posix_acl *acl, int type); */ unsigned fuse_len_args(unsigned numargs, struct fuse_arg *args); +/** + * Get the next unique ID for a request + */ +u64 fuse_get_unique(struct fuse_iqueue *fiq); + #endif /* _FS_FUSE_I_H */