[1/1] fsnotify: export 'fsnotify_recalc_mask' symbol

Message ID 20230607024700.11060-1-bo.wu@vivo.com
State New
Headers
Series [1/1] fsnotify: export 'fsnotify_recalc_mask' symbol |

Commit Message

Wu Bo June 7, 2023, 2:47 a.m. UTC
  To enable modules to update existing mark, export 'fsnotify_recalc_mask'
symbol.

Signed-off-by: Wu Bo <bo.wu@vivo.com>
---
 fs/notify/mark.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Christoph Hellwig June 7, 2023, 6:21 a.m. UTC | #1
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?
  

Patch

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)