aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-10-04 11:06:42 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-11-09 00:16:20 -0500
commiteee5cc2702929fd41cce28058dc6d6717f723f87 (patch)
treed405e2302511adec7d25024679b8ac2cbd95d608 /include/linux/fs.h
parent8b61e74ffc6310e1d35a9b51c8463093851f8bcf (diff)
get rid of s_files and files_lock
The only thing we need it for is alt-sysrq-r (emergency remount r/o) and these days we can do just as well without going through the list of files. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 2ab8a67ee054..2b0f4e974480 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -764,12 +764,7 @@ static inline int ra_has_index(struct file_ra_state *ra, pgoff_t index)
764#define FILE_MNT_WRITE_RELEASED 2 764#define FILE_MNT_WRITE_RELEASED 2
765 765
766struct file { 766struct file {
767 /*
768 * fu_list becomes invalid after file_free is called and queued via
769 * fu_rcuhead for RCU freeing
770 */
771 union { 767 union {
772 struct list_head fu_list;
773 struct llist_node fu_llist; 768 struct llist_node fu_llist;
774 struct rcu_head fu_rcuhead; 769 struct rcu_head fu_rcuhead;
775 } f_u; 770 } f_u;
@@ -783,9 +778,6 @@ struct file {
783 * Must not be taken from IRQ context. 778 * Must not be taken from IRQ context.
784 */ 779 */
785 spinlock_t f_lock; 780 spinlock_t f_lock;
786#ifdef CONFIG_SMP
787 int f_sb_list_cpu;
788#endif
789 atomic_long_t f_count; 781 atomic_long_t f_count;
790 unsigned int f_flags; 782 unsigned int f_flags;
791 fmode_t f_mode; 783 fmode_t f_mode;
@@ -1264,11 +1256,6 @@ struct super_block {
1264 1256
1265 struct list_head s_inodes; /* all inodes */ 1257 struct list_head s_inodes; /* all inodes */
1266 struct hlist_bl_head s_anon; /* anonymous dentries for (nfs) exporting */ 1258 struct hlist_bl_head s_anon; /* anonymous dentries for (nfs) exporting */
1267#ifdef CONFIG_SMP
1268 struct list_head __percpu *s_files;
1269#else
1270 struct list_head s_files;
1271#endif
1272 struct list_head s_mounts; /* list of mounts; _not_ for fs use */ 1259 struct list_head s_mounts; /* list of mounts; _not_ for fs use */
1273 struct block_device *s_bdev; 1260 struct block_device *s_bdev;
1274 struct backing_dev_info *s_bdi; 1261 struct backing_dev_info *s_bdi;