2023-06-07 03:21:56

by Wu Bo

[permalink] [raw]
Subject: [PATCH 1/1] fsnotify: export 'fsnotify_recalc_mask' symbol

To enable modules to update existing mark, export 'fsnotify_recalc_mask'
symbol.

Signed-off-by: Wu Bo <[email protected]>
---
fs/notify/mark.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/notify/mark.c b/fs/notify/mark.c
index c74ef947447d..bc8f38c98bfa 100644
--- a/fs/notify/mark.c
+++ b/fs/notify/mark.c
@@ -194,6 +194,7 @@ void fsnotify_recalc_mask(struct fsnotify_mark_connector *conn)
__fsnotify_update_child_dentry_flags(
fsnotify_conn_inode(conn));
}
+EXPORT_SYMBOL_GPL(fsnotify_recalc_mask);

/* Free all connectors queued for freeing once SRCU period ends */
static void fsnotify_connector_destroy_workfn(struct work_struct *work)
--
2.35.3



2023-06-07 06:32:04

by Christoph Hellwig

[permalink] [raw]
Subject: Re: [PATCH 1/1] fsnotify: export 'fsnotify_recalc_mask' symbol

On Wed, Jun 07, 2023 at 10:47:00AM +0800, Wu Bo wrote:
> To enable modules to update existing mark, export 'fsnotify_recalc_mask'
> symbol.

Why, and which module? And why isn't the code to use it included?