Blame view

fs/internal.h 3.96 KB
07f3f05c1   David Howells   [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   Andrew Morton   [PATCH] CONFIG_BL...
11
  struct super_block;
9d412a43c   Al Viro   vfs: split off vf...
12
  struct file_system_type;
ae259a9c8   Christoph Hellwig   fs: introduce iom...
13
  struct iomap;
a6f76f23d   David Howells   CRED: Make execve...
14
  struct linux_binprm;
3e93cd671   Al Viro   Take fs_struct ha...
15
  struct path;
c71053659   Al Viro   vfs: spread struc...
16
  struct mount;
503c358cf   Vladimir Davydov   list_lru: introdu...
17
  struct shrink_control;
5e6d12b2c   Andrew Morton   [PATCH] CONFIG_BL...
18

07f3f05c1   David Howells   [PATCH] BLOCK: Mo...
19
20
21
  /*
   * block_dev.c
   */
9361401eb   David Howells   [PATCH] BLOCK: Ma...
22
  #ifdef CONFIG_BLOCK
07f3f05c1   David Howells   [PATCH] BLOCK: Mo...
23
  extern void __init bdev_cache_init(void);
5cee5815d   Jan Kara   vfs: Make sys_syn...
24
  extern int __sync_blockdev(struct block_device *bdev, int wait);
9361401eb   David Howells   [PATCH] BLOCK: Ma...
25
  #else
5e6d12b2c   Andrew Morton   [PATCH] CONFIG_BL...
26
27
28
  static inline void bdev_cache_init(void)
  {
  }
9361401eb   David Howells   [PATCH] BLOCK: Ma...
29

5cee5815d   Jan Kara   vfs: Make sys_syn...
30
31
32
33
  static inline int __sync_blockdev(struct block_device *bdev, int wait)
  {
  	return 0;
  }
9361401eb   David Howells   [PATCH] BLOCK: Ma...
34
  #endif
7b0de42d7   David Howells   [PATCH] BLOCK: Re...
35

07f3f05c1   David Howells   [PATCH] BLOCK: Mo...
36
  /*
4db96b71e   Akinobu Mita   vfs: guard end of...
37
38
39
   * buffer.c
   */
  extern void guard_bio_eod(int rw, struct bio *bio);
ae259a9c8   Christoph Hellwig   fs: introduce iom...
40
41
  extern int __block_write_begin_int(struct page *page, loff_t pos, unsigned len,
  		get_block_t *get_block, struct iomap *iomap);
4db96b71e   Akinobu Mita   vfs: guard end of...
42
43
  
  /*
07f3f05c1   David Howells   [PATCH] BLOCK: Mo...
44
45
46
47
48
   * char_dev.c
   */
  extern void __init chrdev_init(void);
  
  /*
0bdaea901   David Howells   VFS: Split inode_...
49
50
   * namei.c
   */
197df04c7   Al Viro   rename user_path_...
51
52
53
  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   David Howells   VFS: Split inode_...
54
55
  
  /*
07f3f05c1   David Howells   [PATCH] BLOCK: Mo...
56
57
   * namespace.c
   */
b40ef8696   Al Viro   saner calling con...
58
  extern void *copy_mount_options(const void __user *);
b8850d1fa   Tim Gardner   fs: namespace: su...
59
  extern char *copy_mount_string(const void __user *);
6d59e7f58   Al Viro   [PATCH] move a bu...
60

0f60f240d   David Howells   FS: lookup_mnt() ...
61
  extern struct vfsmount *lookup_mnt(struct path *);
19a167af7   Al Viro   Take the completi...
62
  extern int finish_automount(struct vfsmount *, struct path *);
6d59e7f58   Al Viro   [PATCH] move a bu...
63

4ed5e82fe   Miklos Szeredi   vfs: protect remo...
64
  extern int sb_prepare_remount_readonly(struct super_block *);
f03c65993   Al Viro   sanitize vfsmount...
65

6d59e7f58   Al Viro   [PATCH] move a bu...
66
  extern void __init mnt_init(void);
3e93cd671   Al Viro   Take fs_struct ha...
67

eb04c2828   Jan Kara   fs: Add freezing ...
68
69
70
71
  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   Al Viro   Take vfsmount_loc...
72

3e93cd671   Al Viro   Take fs_struct ha...
73
74
75
  /*
   * fs_struct.c
   */
dcf787f39   Al Viro   constify path_get...
76
  extern void chroot_fs_refs(const struct path *, const struct path *);
864d7c4c0   npiggin@suse.de   fs: move mark_fil...
77
78
79
80
  
  /*
   * file_table.c
   */
e81e3f4dc   Eric Paris   fs: move get_empt...
81
  extern struct file *get_empty_filp(void);
62c6943b4   Al Viro   Trim a bit of cra...
82
83
84
85
86
  
  /*
   * super.c
   */
  extern int do_remount_sb(struct super_block *, int, void *, int);
eb6ef3df4   Konstantin Khlebnikov   trylock_super(): ...
87
  extern bool trylock_super(struct super_block *sb);
9d412a43c   Al Viro   vfs: split off vf...
88
89
  extern struct dentry *mount_fs(struct file_system_type *,
  			       int, const char *, void *);
cf31e70d6   Al Viro   vfs: new helper -...
90
  extern struct super_block *user_get_super(dev_t);
482928d59   Al Viro   Fix f_flags/f_mod...
91
92
93
94
  
  /*
   * open.c
   */
47c805dc2   Al Viro   switch do_filp_op...
95
96
  struct open_flags {
  	int open_flag;
a218d0fdc   Al Viro   switch open and m...
97
  	umode_t mode;
47c805dc2   Al Viro   switch do_filp_op...
98
99
  	int acc_mode;
  	int intent;
f9652e10c   Al Viro   allow build_open_...
100
  	int lookup_flags;
47c805dc2   Al Viro   switch do_filp_op...
101
  };
669abf4e5   Jeff Layton   vfs: make path_op...
102
  extern struct file *do_filp_open(int dfd, struct filename *pathname,
f9652e10c   Al Viro   allow build_open_...
103
  		const struct open_flags *op);
73d049a40   Al Viro   open-style analog...
104
  extern struct file *do_file_open_root(struct dentry *, struct vfsmount *,
f9652e10c   Al Viro   allow build_open_...
105
  		const char *, const struct open_flags *);
a8dade34e   Al Viro   unexport invalida...
106

becfd1f37   Aneesh Kumar K.V   vfs: Add open by ...
107
108
  extern long do_handle_open(int mountdirfd,
  			   struct file_handle __user *ufh, int open_flag);
90ad1a8ec   Miklos Szeredi   vfs: split __dent...
109
  extern int open_check_o_direct(struct file *f);
4bacc9c92   David Howells   overlayfs: Make f...
110
  extern int vfs_open(const struct path *, struct file *, const struct cred *);
becfd1f37   Aneesh Kumar K.V   vfs: Add open by ...
111

a8dade34e   Al Viro   unexport invalida...
112
113
114
  /*
   * inode.c
   */
503c358cf   Vladimir Davydov   list_lru: introdu...
115
  extern long prune_icache_sb(struct super_block *sb, struct shrink_control *sc);
4eff96dd5   Jan Kara   writeback: put un...
116
  extern void inode_add_lru(struct inode *inode);
55fa6091d   Dave Chinner   fs: move i_sb_lis...
117

a66979aba   Dave Chinner   fs: move i_wb_lis...
118
119
120
  /*
   * fs-writeback.c
   */
c7f540849   Dave Chinner   inode: rename i_w...
121
  extern void inode_io_list_del(struct inode *inode);
a66979aba   Dave Chinner   fs: move i_wb_lis...
122

3942c07cc   Glauber Costa   fs: bump inode an...
123
  extern long get_nr_dirty_inodes(void);
a4cdbd8bf   Al Viro   braino in internal.h
124
  extern void evict_inodes(struct super_block *);
93b270f76   NeilBrown   Fix over-zealous ...
125
  extern int invalidate_inodes(struct super_block *, bool);
a4464dbc0   Al Viro   Make ->d_sb assig...
126
127
128
129
130
  
  /*
   * dcache.c
   */
  extern struct dentry *__d_alloc(struct super_block *, const struct qstr *);
eed810076   Miklos Szeredi   vfs: check unlink...
131
  extern int d_set_mounted(struct dentry *dentry);
503c358cf   Vladimir Davydov   list_lru: introdu...
132
  extern long prune_dcache_sb(struct super_block *sb, struct shrink_control *sc);
ba65dc5ef   Al Viro   much milder d_wal...
133
  extern struct dentry *d_alloc_cursor(struct dentry *);
06ae43f34   Al Viro   Don't bother with...
134
135
136
137
  
  /*
   * read_write.c
   */
68d70d03f   Al Viro   constify rw_verif...
138
  extern int rw_verify_area(int, struct file *, const loff_t *, size_t);
599a0ac14   Al Viro   pipe: fold file_o...
139
140
141
142
143
  
  /*
   * pipe.c
   */
  extern const struct file_operations pipefifo_fops;
8fa1f1c2b   Al Viro   make fs/{namespac...
144
145
146
147
  
  /*
   * fs_pin.c
   */
fdab684d7   Al Viro   allow attaching f...
148
  extern void group_pin_kill(struct hlist_head *p);
8fa1f1c2b   Al Viro   make fs/{namespac...
149
  extern void mnt_pin_kill(struct mount *m);
e149ed2b8   Al Viro   take the targets ...
150
151
152
153
154
  
  /*
   * fs/nsfs.c
   */
  extern struct dentry_operations ns_dentry_operations;
66cf191f3   Al Viro   compat_ioctl: don...
155
156
157
158
159
160
161
  
  /*
   * fs/ioctl.c
   */
  extern int do_vfs_ioctl(struct file *file, unsigned int fd, unsigned int cmd,
  		    unsigned long arg);
  extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);