hc
2025-02-14 bbb9540dc49f70f6b703d1c8d1b85fa5f602d86e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright 2018 Google LLC
 */
 
#ifndef _INCFS_VFS_H
#define _INCFS_VFS_H
 
extern const struct file_operations incfs_file_ops;
extern const struct inode_operations incfs_file_inode_ops;
 
void incfs_kill_sb(struct super_block *sb);
struct dentry *incfs_mount_fs(struct file_system_type *type, int flags,
                 const char *dev_name, void *data);
int incfs_link(struct dentry *what, struct dentry *where);
int incfs_unlink(struct dentry *dentry);
 
static inline struct mount_info *get_mount_info(struct super_block *sb)
{
   struct mount_info *result = sb->s_fs_info;
 
   WARN_ON(!result);
   return result;
}
 
static inline struct super_block *file_superblock(struct file *f)
{
   struct inode *inode = file_inode(f);
 
   return inode->i_sb;
}
 
#endif