[Devel] [PATCH RHEL9 COMMIT] fs: Export symbols replace_fd() and create_pipe_files()
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Oct 20 11:40:40 MSK 2021
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.10.12
------>
commit 201c525ea9ace79eb36ee10f342c689b076c4920
Author: Sergey Lysanov <slysanov at virtuozzo.com>
Date: Wed Oct 20 11:40:40 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>
(cherry picked from vz8 commit 63148b36d11de4e546b163948cb32279516b789a)
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 fabb57dd1b9d..49c233d6dcd9 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -1116,6 +1116,7 @@ int replace_fd(unsigned fd, struct file *file, unsigned flags)
spin_unlock(&files->file_lock);
return err;
}
+EXPORT_SYMBOL(replace_fd);
/**
* __receive_fd() - Install received file into file descriptor table
diff --git a/fs/pipe.c b/fs/pipe.c
index 7f07ce7199bb..19e0a8990a42 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -946,6 +946,7 @@ int create_pipe_files(struct file **res, int flags)
stream_open(inode, res[1]);
return 0;
}
+EXPORT_SYMBOL(create_pipe_files);
static int __do_pipe_flags(int *fd, struct file **files, int flags)
{
More information about the Devel
mailing list