Skip to content

Commit dded4f4

Browse files
Jan EngelhardtAl Viro
authored andcommitted
include: linux/fs.h: put declarations in __KERNEL__
include/linux/fs.h contains externs for a bunch of variables. That obviously belongs under ifdef __KERNEL__. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent c2452f3 commit dded4f4

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎include/linux/fs.h‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
/* Fixed constants first: */
2323
#undef NR_OPEN
24-
extern int sysctl_nr_open;
2524
#define INR_OPEN 1024 /* Initial setting for nfile rlimits */
2625

2726
#define BLOCK_SIZE_BITS 10
@@ -38,21 +37,13 @@ struct files_stat_struct {
3837
int nr_free_files; /* read only */
3938
int max_files; /* tunable */
4039
};
41-
extern struct files_stat_struct files_stat;
42-
extern int get_max_files(void);
4340

4441
struct inodes_stat_t {
4542
int nr_inodes;
4643
int nr_unused;
4744
int dummy[5]; /* padding for sysctl ABI compatibility */
4845
};
49-
extern struct inodes_stat_t inodes_stat;
5046

51-
extern int leases_enable, lease_break_time;
52-
53-
#ifdef CONFIG_DNOTIFY
54-
extern int dir_notify_enable;
55-
#endif
5647

5748
#define NR_FILE 8192 /* this can well be larger on a larger system */
5849

@@ -330,6 +321,15 @@ extern void __init inode_init(void);
330321
extern void __init inode_init_early(void);
331322
extern void __init files_init(unsigned long);
332323

324+
extern struct files_stat_struct files_stat;
325+
extern int get_max_files(void);
326+
extern int sysctl_nr_open;
327+
extern struct inodes_stat_t inodes_stat;
328+
extern int leases_enable, lease_break_time;
329+
#ifdef CONFIG_DNOTIFY
330+
extern int dir_notify_enable;
331+
#endif
332+
333333
struct buffer_head;
334334
typedef int (get_block_t)(struct inode *inode, sector_t iblock,
335335
struct buffer_head *bh_result, int create);

0 commit comments

Comments
 (0)