Blame view
fs/internal.h
3.56 KB
07f3f05c1
|
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
|
11 |
struct super_block; |
9d412a43c
|
12 |
struct file_system_type; |
a6f76f23d
|
13 |
struct linux_binprm; |
3e93cd671
|
14 |
struct path; |
c71053659
|
15 |
struct mount; |
5e6d12b2c
|
16 |
|
07f3f05c1
|
17 18 19 |
/* * block_dev.c */ |
9361401eb
|
20 |
#ifdef CONFIG_BLOCK |
07f3f05c1
|
21 |
extern void __init bdev_cache_init(void); |
5cee5815d
|
22 |
extern int __sync_blockdev(struct block_device *bdev, int wait); |
9361401eb
|
23 |
#else |
5e6d12b2c
|
24 25 26 |
static inline void bdev_cache_init(void) { } |
9361401eb
|
27 |
|
5cee5815d
|
28 29 30 31 |
static inline int __sync_blockdev(struct block_device *bdev, int wait) { return 0; } |
9361401eb
|
32 |
#endif |
7b0de42d7
|
33 |
|
07f3f05c1
|
34 |
/* |
4db96b71e
|
35 36 37 38 39 |
* buffer.c */ extern void guard_bio_eod(int rw, struct bio *bio); /* |
07f3f05c1
|
40 41 42 43 44 |
* char_dev.c */ extern void __init chrdev_init(void); /* |
0bdaea901
|
45 46 |
* namei.c */ |
197df04c7
|
47 48 49 |
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 *); |
0bdaea901
|
50 51 |
/* |
07f3f05c1
|
52 53 54 |
* namespace.c */ extern int copy_mount_options(const void __user *, unsigned long *); |
b8850d1fa
|
55 |
extern char *copy_mount_string(const void __user *); |
6d59e7f58
|
56 |
|
0f60f240d
|
57 |
extern struct vfsmount *lookup_mnt(struct path *); |
19a167af7
|
58 |
extern int finish_automount(struct vfsmount *, struct path *); |
6d59e7f58
|
59 |
|
4ed5e82fe
|
60 |
extern int sb_prepare_remount_readonly(struct super_block *); |
f03c65993
|
61 |
|
6d59e7f58
|
62 |
extern void __init mnt_init(void); |
3e93cd671
|
63 |
|
eb04c2828
|
64 65 66 67 |
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
|
68 |
|
3e93cd671
|
69 70 71 |
/* * fs_struct.c */ |
dcf787f39
|
72 |
extern void chroot_fs_refs(const struct path *, const struct path *); |
864d7c4c0
|
73 74 75 76 |
/* * file_table.c */ |
e81e3f4dc
|
77 |
extern struct file *get_empty_filp(void); |
62c6943b4
|
78 79 80 81 82 |
/* * super.c */ extern int do_remount_sb(struct super_block *, int, void *, int); |
12ad3ab66
|
83 |
extern bool grab_super_passive(struct super_block *sb); |
9d412a43c
|
84 85 |
extern struct dentry *mount_fs(struct file_system_type *, int, const char *, void *); |
cf31e70d6
|
86 |
extern struct super_block *user_get_super(dev_t); |
482928d59
|
87 88 89 90 |
/* * open.c */ |
47c805dc2
|
91 92 |
struct open_flags { int open_flag; |
a218d0fdc
|
93 |
umode_t mode; |
47c805dc2
|
94 95 |
int acc_mode; int intent; |
f9652e10c
|
96 |
int lookup_flags; |
47c805dc2
|
97 |
}; |
669abf4e5
|
98 |
extern struct file *do_filp_open(int dfd, struct filename *pathname, |
f9652e10c
|
99 |
const struct open_flags *op); |
73d049a40
|
100 |
extern struct file *do_file_open_root(struct dentry *, struct vfsmount *, |
f9652e10c
|
101 |
const char *, const struct open_flags *); |
a8dade34e
|
102 |
|
becfd1f37
|
103 104 |
extern long do_handle_open(int mountdirfd, struct file_handle __user *ufh, int open_flag); |
90ad1a8ec
|
105 |
extern int open_check_o_direct(struct file *f); |
becfd1f37
|
106 |
|
a8dade34e
|
107 108 109 |
/* * inode.c */ |
55fa6091d
|
110 |
extern spinlock_t inode_sb_list_lock; |
9b17c6238
|
111 112 |
extern long prune_icache_sb(struct super_block *sb, unsigned long nr_to_scan, int nid); |
4eff96dd5
|
113 |
extern void inode_add_lru(struct inode *inode); |
55fa6091d
|
114 |
|
a66979aba
|
115 116 117 118 |
/* * fs-writeback.c */ extern void inode_wb_list_del(struct inode *inode); |
3942c07cc
|
119 |
extern long get_nr_dirty_inodes(void); |
a4cdbd8bf
|
120 |
extern void evict_inodes(struct super_block *); |
93b270f76
|
121 |
extern int invalidate_inodes(struct super_block *, bool); |
a4464dbc0
|
122 123 124 125 126 |
/* * dcache.c */ extern struct dentry *__d_alloc(struct super_block *, const struct qstr *); |
eed810076
|
127 |
extern int d_set_mounted(struct dentry *dentry); |
9b17c6238
|
128 129 |
extern long prune_dcache_sb(struct super_block *sb, unsigned long nr_to_scan, int nid); |
06ae43f34
|
130 131 132 133 |
/* * read_write.c */ |
68d70d03f
|
134 |
extern int rw_verify_area(int, struct file *, const loff_t *, size_t); |
599a0ac14
|
135 136 137 138 139 |
/* * pipe.c */ extern const struct file_operations pipefifo_fops; |
8fa1f1c2b
|
140 141 142 143 144 145 |
/* * fs_pin.c */ extern void sb_pin_kill(struct super_block *sb); extern void mnt_pin_kill(struct mount *m); |
e149ed2b8
|
146 147 148 149 150 |
/* * fs/nsfs.c */ extern struct dentry_operations ns_dentry_operations; |