aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
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 /fs/open.c
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 'fs/open.c')
-rw-r--r--fs/open.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/open.c b/fs/open.c
index a1465b1ec8c7..fffbed40dbe9 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -685,7 +685,6 @@ static int do_dentry_open(struct file *f,
685 } 685 }
686 686
687 f->f_mapping = inode->i_mapping; 687 f->f_mapping = inode->i_mapping;
688 file_sb_list_add(f, inode->i_sb);
689 688
690 if (unlikely(f->f_mode & FMODE_PATH)) { 689 if (unlikely(f->f_mode & FMODE_PATH)) {
691 f->f_op = &empty_fops; 690 f->f_op = &empty_fops;
@@ -724,7 +723,6 @@ static int do_dentry_open(struct file *f,
724 723
725cleanup_all: 724cleanup_all:
726 fops_put(f->f_op); 725 fops_put(f->f_op);
727 file_sb_list_del(f);
728 if (f->f_mode & FMODE_WRITE) { 726 if (f->f_mode & FMODE_WRITE) {
729 put_write_access(inode); 727 put_write_access(inode);
730 if (!special_file(inode->i_mode)) { 728 if (!special_file(inode->i_mode)) {