[Devel] [PATCH RH8 09/11] fs: Export symbols replace_fd() and create_pipe_files()
Andrey Zhadchenko
andrey.zhadchenko at virtuozzo.com
Fri Jun 4 17:45:36 MSK 2021
From: Sergey Lysanov <slysanov at virtuozzo.com>
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 a65a2e655b78ac294822ed37e956815c138b1a43)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
diff --git a/fs/file.c b/fs/file.c
index 0ed1c4c..e594ac4 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -949,6 +949,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 90de2ee..2e223ed 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)
{
--
1.8.3.1
More information about the Devel
mailing list