fsnotify.h (b812a9f5896379b6cff2ac168ddb5b89037d8e78) fsnotify.h (36f10f55ff1d2867bfc48ed898a9cc0dc6b49dd2)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __FS_NOTIFY_FSNOTIFY_H_
3#define __FS_NOTIFY_FSNOTIFY_H_
4
5#include <linux/list.h>
6#include <linux/fsnotify.h>
7#include <linux/srcu.h>
8#include <linux/types.h>
9
10#include "../mount.h"
11
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __FS_NOTIFY_FSNOTIFY_H_
3#define __FS_NOTIFY_FSNOTIFY_H_
4
5#include <linux/list.h>
6#include <linux/fsnotify.h>
7#include <linux/srcu.h>
8#include <linux/types.h>
9
10#include "../mount.h"
11
12static inline struct inode *fsnotify_obj_inode(fsnotify_connp_t *connp)
12static inline struct inode *fsnotify_conn_inode(
13 struct fsnotify_mark_connector *conn)
13{
14{
14 return container_of(connp, struct inode, i_fsnotify_marks);
15 return container_of(conn->obj, struct inode, i_fsnotify_marks);
15}
16
16}
17
17static inline struct mount *fsnotify_obj_mount(fsnotify_connp_t *connp)
18static inline struct mount *fsnotify_conn_mount(
19 struct fsnotify_mark_connector *conn)
18{
20{
19 return container_of(connp, struct mount, mnt_fsnotify_marks);
21 return container_of(conn->obj, struct mount, mnt_fsnotify_marks);
20}
21
22/* destroy all events sitting in this groups notification queue */
23extern void fsnotify_flush_notify(struct fsnotify_group *group);
24
25/* protects reads of inode and vfsmount marks list */
26extern struct srcu_struct fsnotify_mark_srcu;
27

--- 30 unchanged lines hidden ---
22}
23
24/* destroy all events sitting in this groups notification queue */
25extern void fsnotify_flush_notify(struct fsnotify_group *group);
26
27/* protects reads of inode and vfsmount marks list */
28extern struct srcu_struct fsnotify_mark_srcu;
29

--- 30 unchanged lines hidden ---