xref: /linux-6.15/fs/fuse/fuse_dev_i.h (revision 867d93dc)
1 /* SPDX-License-Identifier: GPL-2.0
2  *
3  * FUSE: Filesystem in Userspace
4  * Copyright (C) 2001-2008  Miklos Szeredi <[email protected]>
5  */
6 #ifndef _FS_FUSE_DEV_I_H
7 #define _FS_FUSE_DEV_I_H
8 
9 #include <linux/types.h>
10 
11 static inline struct fuse_dev *fuse_get_dev(struct file *file)
12 {
13 	/*
14 	 * Lockless access is OK, because file->private data is set
15 	 * once during mount and is valid until the file is released.
16 	 */
17 	return READ_ONCE(file->private_data);
18 }
19 
20 void fuse_dev_end_requests(struct list_head *head);
21 
22 #endif
23 
24