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