aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h7
-rw-r--r--include/linux/tty.h1
2 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 29f7c975304c..5a9a9e5a3705 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -944,9 +944,6 @@ struct file {
944 unsigned long f_mnt_write_state; 944 unsigned long f_mnt_write_state;
945#endif 945#endif
946}; 946};
947extern spinlock_t files_lock;
948#define file_list_lock() spin_lock(&files_lock);
949#define file_list_unlock() spin_unlock(&files_lock);
950 947
951#define get_file(x) atomic_long_inc(&(x)->f_count) 948#define get_file(x) atomic_long_inc(&(x)->f_count)
952#define fput_atomic(x) atomic_long_add_unless(&(x)->f_count, -1, 1) 949#define fput_atomic(x) atomic_long_add_unless(&(x)->f_count, -1, 1)
@@ -2188,8 +2185,8 @@ static inline void insert_inode_hash(struct inode *inode) {
2188 __insert_inode_hash(inode, inode->i_ino); 2185 __insert_inode_hash(inode, inode->i_ino);
2189} 2186}
2190 2187
2191extern void file_move(struct file *f, struct list_head *list); 2188extern void file_sb_list_add(struct file *f, struct super_block *sb);
2192extern void file_kill(struct file *f); 2189extern void file_sb_list_del(struct file *f);
2193#ifdef CONFIG_BLOCK 2190#ifdef CONFIG_BLOCK
2194extern void submit_bio(int, struct bio *); 2191extern void submit_bio(int, struct bio *);
2195extern int bdev_read_only(struct block_device *); 2192extern int bdev_read_only(struct block_device *);
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 1437da3ddc62..f6b371a2514e 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -470,6 +470,7 @@ extern struct tty_struct *tty_pair_get_tty(struct tty_struct *tty);
470extern struct tty_struct *tty_pair_get_pty(struct tty_struct *tty); 470extern struct tty_struct *tty_pair_get_pty(struct tty_struct *tty);
471 471
472extern struct mutex tty_mutex; 472extern struct mutex tty_mutex;
473extern spinlock_t tty_files_lock;
473 474
474extern void tty_write_unlock(struct tty_struct *tty); 475extern void tty_write_unlock(struct tty_struct *tty);
475extern int tty_write_lock(struct tty_struct *tty, int ndelay); 476extern int tty_write_lock(struct tty_struct *tty, int ndelay);