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

Konstantin Khorenko khorenko at virtuozzo.com
Fri Feb 1 12:52:24 MSK 2019


The commit is pushed to "branch-rh7-3.10.0-957.1.3.vz7.83.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-957.1.3.vz7.83.9
------>
commit a65a2e655b78ac294822ed37e956815c138b1a43
Author: Sergey Lysanov <slysanov at virtuozzo.com>
Date:   Fri Feb 1 12:52:22 2019 +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>
---
 fs/file.c | 1 +
 fs/pipe.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/fs/file.c b/fs/file.c
index 12d755b67fcf..84c8d695c0d3 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -952,6 +952,7 @@ int replace_fd(unsigned fd, struct file *file, unsigned flags)
 	spin_unlock(&files->file_lock);
 	return err;
 }
+EXPORT_SYMBOL(replace_fd);
 
 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags)
 {
diff --git a/fs/pipe.c b/fs/pipe.c
index ebe696a2bc04..24b757780c6a 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -996,6 +996,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