提交 f96b6dd6 编写于 作者: S Stefan Hajnoczi 提交者: Caspar Zhang

fuse: export fuse_get_unique()

task #28910367
commit 79d96efffda7597b41968d5d8813b39fc2965f1b upstream

virtio-fs will need unique IDs for FORGET requests from outside
fs/fuse/dev.c.  Make the symbol visible.
Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: NLiu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: NJoseph Qi <joseph.qi@linux.alibaba.com>
上级 0213de76
...@@ -322,10 +322,11 @@ unsigned fuse_len_args(unsigned numargs, struct fuse_arg *args) ...@@ -322,10 +322,11 @@ unsigned fuse_len_args(unsigned numargs, struct fuse_arg *args)
} }
EXPORT_SYMBOL_GPL(fuse_len_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; return ++fiq->reqctr;
} }
EXPORT_SYMBOL_GPL(fuse_get_unique);
/** /**
* A new request is available, wake fiq->waitq * A new request is available, wake fiq->waitq
......
...@@ -1089,4 +1089,9 @@ int fuse_set_acl(struct inode *inode, struct posix_acl *acl, int type); ...@@ -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); 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 */ #endif /* _FS_FUSE_I_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册