diff options
Diffstat (limited to 'fs/xfs/xfs_mount.h')
-rw-r--r-- | fs/xfs/xfs_mount.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h index e091f3b3fa15..0bc50069254c 100644 --- a/fs/xfs/xfs_mount.h +++ b/fs/xfs/xfs_mount.h @@ -56,6 +56,10 @@ struct xfs_error_cfg { long retry_timeout; /* in jiffies, -1 = infinite */ }; +struct xfs_hook_chain { + struct srcu_notifier_head head; +}; + /* * Per-cpu deferred inode inactivation GC lists. */ @@ -501,4 +505,10 @@ int xfs_add_incompat_log_feature(struct xfs_mount *mp, uint32_t feature); bool xfs_clear_incompat_log_features(struct xfs_mount *mp); void xfs_mod_delalloc(struct xfs_mount *mp, int64_t delta); +void xfs_hook_init(struct xfs_hook_chain *chain); +int xfs_hook_add(struct xfs_hook_chain *chain, struct notifier_block *hook, + notifier_fn_t fn); +void xfs_hook_del(struct xfs_hook_chain *chain, struct notifier_block *hook); +int xfs_hook_call(struct xfs_hook_chain *chain, unsigned long val, void *priv); + #endif /* __XFS_MOUNT_H__ */ |