[Devel] [PATCH RHEL7 COMMIT] fs/fuse: export fuse_release_ff() and fuse_write_file()

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jun 15 14:59:14 MSK 2018


The commit is pushed to "branch-rh7-3.10.0-693.21.1.vz7.50.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.21.1.vz7.50.9
------>
commit f3c04f7e19b7282fcabfd957fa10ca2071c1bd8a
Author: Pavel Butsykin <pbutsykin at virtuozzo.com>
Date:   Fri Jun 15 14:59:14 2018 +0300

    fs/fuse: export fuse_release_ff() and fuse_write_file()
    
    This allows to use these functions in pcs_fuse_kdirect module and needed for
    next patch.
    
    https://pmc.acronis.com/browse/VSTOR-10635
    
    Signed-off-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
    Reviewed-by: Kirill Tkhai <ktkhai 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 */


More information about the Devel mailing list