[Devel] [PATCH v2 3/4] fs/fuse: export fuse_release_ff() and fuse_write_file()
Pavel Butsykin
pbutsykin at virtuozzo.com
Sat Jun 9 16:07:24 MSK 2018
This allows to use these functions in pcs_fuse_kdirect module and needed for
next patch.
Signed-off-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
---
fs/fuse/file.c | 5 +++--
fs/fuse/fuse_i.h | 4 ++++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index f9a0da25a9df..a8badb889975 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1142,6 +1142,7 @@ void fuse_release_ff(struct inode *inode, struct fuse_file *ff)
}
}
}
+EXPORT_SYMBOL_GPL(fuse_release_ff);
static void fuse_readpages_end(struct fuse_conn *fc, struct fuse_req *req)
{
@@ -2002,8 +2003,7 @@ static void fuse_writepage_end(struct fuse_conn *fc, struct fuse_req *req)
fuse_writepage_free(fc, req);
}
-static struct fuse_file *fuse_write_file(struct fuse_conn *fc,
- struct fuse_inode *fi)
+struct fuse_file *fuse_write_file(struct fuse_conn *fc, struct fuse_inode *fi)
{
struct fuse_file *ff = NULL;
@@ -2016,6 +2016,7 @@ static struct fuse_file *fuse_write_file(struct fuse_conn *fc,
return ff;
}
+EXPORT_SYMBOL_GPL(fuse_write_file);
static int tree_insert(struct rb_root *root, struct fuse_req *ins_req)
{
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 939835f585b1..20295250070a 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -1091,4 +1091,8 @@ void fuse_stat_account(struct fuse_conn * fc, int op, ktime_t val);
int fuse_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
__u64 start, __u64 len);
+struct fuse_file *fuse_write_file(struct fuse_conn *fc, struct fuse_inode *fi);
+
+void fuse_release_ff(struct inode *inode, struct fuse_file *ff);
+
#endif /* _FS_FUSE_I_H */
--
2.15.1
More information about the Devel
mailing list