[Devel] [PATCH RHEL8 COMMIT] fs: Export symbols replace_fd() and create_pipe_files()

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jun 11 15:08:03 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.40
------>
commit 7c9f250cdb30cc5459cd01d3b0583d110c57d613
Author: Sergey Lysanov <slysanov at virtuozzo.com>
Date:   Fri Jun 11 15:08:03 2021 +0300

    fs: Export symbols replace_fd() and create_pipe_files()
    
    Need to create a pipe for usermodehelper from SCST.
    User helper will read SCSI persistent reservations
    from pipe and sync it with other nodes in cluster.
    Kernel also will read new persistent reservations
    from userspace by invoking helper with pipe.
    
    Required for https://pmc.acronis.com/browse/VSTOR-10187
    
    Signed-off-by: Sergey Lysanov <slysanov at virtuozzo.com>
    
    (cherry-picked from vz7 commit a65a2e655b78 ("fs: Export symbols replace_fd()
    and create_pipe_files()"))
    
    Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 fs/file.c | 1 +
 fs/pipe.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/fs/file.c b/fs/file.c
index b7618d3d4458..7f05380d6cf4 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -948,6 +948,7 @@ int replace_fd(unsigned fd, struct file *file, unsigned flags)
 	spin_unlock(&files->file_lock);
 	return err;
 }
+EXPORT_SYMBOL(replace_fd);
 
 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags)
 {
diff --git a/fs/pipe.c b/fs/pipe.c
index 90de2ee163c0..2e223eddf3a7 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -788,6 +788,7 @@ int create_pipe_files(struct file **res, int flags)
 	iput(inode);
 	return err;
 }
+EXPORT_SYMBOL(create_pipe_files);
 
 static int __do_pipe_flags(int *fd, struct file **files, int flags)
 {


More information about the Devel mailing list