Blame view
fs/internal.h
5.29 KB
2874c5fd2 treewide: Replace... |
1 |
/* SPDX-License-Identifier: GPL-2.0-or-later */ |
07f3f05c1 [PATCH] BLOCK: Mo... |
2 3 4 5 |
/* fs/ internal definitions * * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) |
07f3f05c1 [PATCH] BLOCK: Mo... |
6 |
*/ |
5e6d12b2c [PATCH] CONFIG_BL... |
7 |
struct super_block; |
9d412a43c vfs: split off vf... |
8 |
struct file_system_type; |
ae259a9c8 fs: introduce iom... |
9 |
struct iomap; |
befb503ca iomap: expose iom... |
10 |
struct iomap_ops; |
a6f76f23d CRED: Make execve... |
11 |
struct linux_binprm; |
3e93cd671 Take fs_struct ha... |
12 |
struct path; |
c71053659 vfs: spread struc... |
13 |
struct mount; |
503c358cf list_lru: introdu... |
14 |
struct shrink_control; |
9bc61ab18 vfs: Introduce fs... |
15 |
struct fs_context; |
2527b284d move the capabili... |
16 |
struct user_namespace; |
5e6d12b2c [PATCH] CONFIG_BL... |
17 |
|
07f3f05c1 [PATCH] BLOCK: Mo... |
18 19 20 |
/* * block_dev.c */ |
9361401eb [PATCH] BLOCK: Ma... |
21 |
#ifdef CONFIG_BLOCK |
07f3f05c1 [PATCH] BLOCK: Mo... |
22 |
extern void __init bdev_cache_init(void); |
5cee5815d vfs: Make sys_syn... |
23 |
extern int __sync_blockdev(struct block_device *bdev, int wait); |
3f1266f1f block: move block... |
24 25 26 |
void iterate_bdevs(void (*)(struct block_device *, void *), void *); void emergency_thaw_bdev(struct super_block *sb); void bd_forget(struct inode *inode); |
9361401eb [PATCH] BLOCK: Ma... |
27 |
#else |
5e6d12b2c [PATCH] CONFIG_BL... |
28 29 30 |
static inline void bdev_cache_init(void) { } |
9361401eb [PATCH] BLOCK: Ma... |
31 |
|
5cee5815d vfs: Make sys_syn... |
32 33 34 35 |
static inline int __sync_blockdev(struct block_device *bdev, int wait) { return 0; } |
3f1266f1f block: move block... |
36 37 38 39 40 41 42 43 44 45 46 47 |
static inline void iterate_bdevs(void (*f)(struct block_device *, void *), void *arg) { } static inline int emergency_thaw_bdev(struct super_block *sb) { return 0; } static inline void bd_forget(struct inode *inode) { } #endif /* CONFIG_BLOCK */ |
7b0de42d7 [PATCH] BLOCK: Re... |
48 |
|
07f3f05c1 [PATCH] BLOCK: Mo... |
49 |
/* |
4db96b71e vfs: guard end of... |
50 51 |
* buffer.c */ |
ae259a9c8 fs: introduce iom... |
52 53 |
extern int __block_write_begin_int(struct page *page, loff_t pos, unsigned len, get_block_t *get_block, struct iomap *iomap); |
4db96b71e vfs: guard end of... |
54 55 |
/* |
07f3f05c1 [PATCH] BLOCK: Mo... |
56 57 58 59 60 |
* char_dev.c */ extern void __init chrdev_init(void); /* |
9bc61ab18 vfs: Introduce fs... |
61 62 |
* fs_context.c */ |
ecdab150f vfs: syscall: Add... |
63 |
extern const struct fs_context_operations legacy_fs_context_ops; |
9bc61ab18 vfs: Introduce fs... |
64 |
extern int parse_monolithic_mount_data(struct fs_context *, void *); |
c9ce29ed7 vfs_get_tree(): e... |
65 |
extern void fc_drop_locked(struct fs_context *); |
ecdab150f vfs: syscall: Add... |
66 67 |
extern void vfs_clean_context(struct fs_context *fc); extern int finish_clean_context(struct fs_context *fc); |
9bc61ab18 vfs: Introduce fs... |
68 69 |
/* |
0bdaea901 VFS: Split inode_... |
70 71 |
* namei.c */ |
31d921c7f vfs: Add configur... |
72 73 |
extern int filename_lookup(int dfd, struct filename *name, unsigned flags, struct path *path, struct path *root); |
197df04c7 rename user_path_... |
74 75 |
extern int vfs_path_lookup(struct dentry *, struct vfsmount *, const char *, unsigned int, struct path *); |
87c4e1926 fs: add do_mknoda... |
76 77 |
long do_mknodat(int dfd, const char __user *filename, umode_t mode, unsigned int dev); |
0101db7a3 fs: add do_mkdira... |
78 |
long do_mkdirat(int dfd, const char __user *pathname, umode_t mode); |
f459dffae fs: add ksys_rmdi... |
79 |
long do_rmdir(int dfd, const char __user *pathname); |
da2f1362c fs: expose do_unl... |
80 |
long do_unlinkat(int dfd, struct filename *name); |
b724e846b fs: add do_symlin... |
81 82 |
long do_symlinkat(const char __user *oldname, int newdfd, const char __user *newname); |
46ea89eb6 fs: add do_linkat... |
83 84 |
int do_linkat(int olddfd, const char __user *oldname, int newdfd, const char __user *newname, int flags); |
0bdaea901 VFS: Split inode_... |
85 86 |
/* |
07f3f05c1 [PATCH] BLOCK: Mo... |
87 88 |
* namespace.c */ |
b40ef8696 saner calling con... |
89 |
extern void *copy_mount_options(const void __user *); |
b8850d1fa fs: namespace: su... |
90 |
extern char *copy_mount_string(const void __user *); |
6d59e7f58 [PATCH] move a bu... |
91 |
|
ca71cf71e namespace.c: cons... |
92 |
extern struct vfsmount *lookup_mnt(const struct path *); |
19a167af7 Take the completi... |
93 |
extern int finish_automount(struct vfsmount *, struct path *); |
6d59e7f58 [PATCH] move a bu... |
94 |
|
4ed5e82fe vfs: protect remo... |
95 |
extern int sb_prepare_remount_readonly(struct super_block *); |
f03c65993 sanitize vfsmount... |
96 |
|
6d59e7f58 [PATCH] move a bu... |
97 |
extern void __init mnt_init(void); |
3e93cd671 Take fs_struct ha... |
98 |
|
eb04c2828 fs: Add freezing ... |
99 |
extern int __mnt_want_write_file(struct file *); |
eb04c2828 fs: Add freezing ... |
100 |
extern void __mnt_drop_write_file(struct file *); |
47cd813f2 Take vfsmount_loc... |
101 |
|
a07b20004 vfs: syscall: Add... |
102 |
extern void dissolve_on_fput(struct vfsmount *); |
3e93cd671 Take fs_struct ha... |
103 104 105 |
/* * fs_struct.c */ |
dcf787f39 constify path_get... |
106 |
extern void chroot_fs_refs(const struct path *, const struct path *); |
864d7c4c0 fs: move mark_fil... |
107 108 109 110 |
/* * file_table.c */ |
ea73ea727 pass ->f_flags va... |
111 |
extern struct file *alloc_empty_file(int, const struct cred *); |
d3b1084df vfs: make open_wi... |
112 |
extern struct file *alloc_empty_file_noaccount(int, const struct cred *); |
62c6943b4 Trim a bit of cra... |
113 114 115 116 |
/* * super.c */ |
8d0347f6c convert do_remoun... |
117 |
extern int reconfigure_super(struct fs_context *); |
eb6ef3df4 trylock_super(): ... |
118 |
extern bool trylock_super(struct super_block *sb); |
cf31e70d6 vfs: new helper -... |
119 |
extern struct super_block *user_get_super(dev_t); |
20284ab74 switch mount_capa... |
120 |
extern bool mount_capable(struct fs_context *); |
482928d59 Fix f_flags/f_mod... |
121 122 123 124 |
/* * open.c */ |
47c805dc2 switch do_filp_op... |
125 126 |
struct open_flags { int open_flag; |
a218d0fdc switch open and m... |
127 |
umode_t mode; |
47c805dc2 switch do_filp_op... |
128 129 |
int acc_mode; int intent; |
f9652e10c allow build_open_... |
130 |
int lookup_flags; |
47c805dc2 switch do_filp_op... |
131 |
}; |
669abf4e5 vfs: make path_op... |
132 |
extern struct file *do_filp_open(int dfd, struct filename *pathname, |
f9652e10c allow build_open_... |
133 |
const struct open_flags *op); |
73d049a40 open-style analog... |
134 |
extern struct file *do_file_open_root(struct dentry *, struct vfsmount *, |
f9652e10c allow build_open_... |
135 |
const char *, const struct open_flags *); |
35cb6d54c fs: make build_op... |
136 137 |
extern struct open_how build_open_how(int flags, umode_t mode); extern int build_open_flags(const struct open_how *how, struct open_flags *op); |
a8dade34e unexport invalida... |
138 |
|
411d9475c fs: add ksys_ftru... |
139 |
long do_sys_ftruncate(unsigned int fd, loff_t length, int small); |
03450e271 fs: add ksys_fchm... |
140 |
int do_fchmodat(int dfd, const char __user *filename, umode_t mode); |
55731b3cd fs: add do_fchown... |
141 142 |
int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, int flag); |
03450e271 fs: add ksys_fchm... |
143 |
|
ae2bb293a get rid of cred a... |
144 |
extern int vfs_open(const struct path *, struct file *); |
becfd1f37 vfs: Add open by ... |
145 |
|
a8dade34e unexport invalida... |
146 147 148 |
/* * inode.c */ |
503c358cf list_lru: introdu... |
149 |
extern long prune_icache_sb(struct super_block *sb, struct shrink_control *sc); |
4eff96dd5 writeback: put un... |
150 |
extern void inode_add_lru(struct inode *inode); |
f0fce87c3 vfs: make dentry_... |
151 |
extern int dentry_needs_remove_privs(struct dentry *dentry); |
55fa6091d fs: move i_sb_lis... |
152 |
|
a66979aba fs: move i_wb_lis... |
153 154 155 |
/* * fs-writeback.c */ |
3942c07cc fs: bump inode an... |
156 |
extern long get_nr_dirty_inodes(void); |
93b270f76 Fix over-zealous ... |
157 |
extern int invalidate_inodes(struct super_block *, bool); |
a4464dbc0 Make ->d_sb assig... |
158 159 160 161 |
/* * dcache.c */ |
eed810076 vfs: check unlink... |
162 |
extern int d_set_mounted(struct dentry *dentry); |
503c358cf list_lru: introdu... |
163 |
extern long prune_dcache_sb(struct super_block *sb, struct shrink_control *sc); |
ba65dc5ef much milder d_wal... |
164 |
extern struct dentry *d_alloc_cursor(struct dentry *); |
ab1152dd5 unexport d_alloc_... |
165 |
extern struct dentry * d_alloc_pseudo(struct super_block *, const struct qstr *); |
7e5f7bb08 unexport simple_d... |
166 |
extern char *simple_dname(struct dentry *, char *, int); |
9bdebc2bd Teach shrink_dcac... |
167 168 |
extern void dput_to_list(struct dentry *, struct list_head *); extern void shrink_dentry_list(struct list_head *); |
06ae43f34 Don't bother with... |
169 170 171 172 |
/* * read_write.c */ |
68d70d03f constify rw_verif... |
173 |
extern int rw_verify_area(int, struct file *, const loff_t *, size_t); |
599a0ac14 pipe: fold file_o... |
174 175 176 177 178 |
/* * pipe.c */ extern const struct file_operations pipefifo_fops; |
8fa1f1c2b make fs/{namespac... |
179 180 181 182 |
/* * fs_pin.c */ |
fdab684d7 allow attaching f... |
183 |
extern void group_pin_kill(struct hlist_head *p); |
8fa1f1c2b make fs/{namespac... |
184 |
extern void mnt_pin_kill(struct mount *m); |
e149ed2b8 take the targets ... |
185 186 187 188 |
/* * fs/nsfs.c */ |
be218aa2e fs/internal.h: ad... |
189 |
extern const struct dentry_operations ns_dentry_operations; |
66cf191f3 compat_ioctl: don... |
190 |
|
ec1b82609 fs: make sb_init_... |
191 192 |
/* direct-io.c: */ int sb_init_dio_done_wq(struct super_block *sb); |
3934e36f6 fs: make two stat... |
193 194 195 196 |
/* * fs/stat.c: */ |
0018784fc statx: allow syst... |
197 198 |
int do_statx(int dfd, const char __user *filename, unsigned flags, unsigned int mask, struct statx __user *buffer); |