summaryrefslogtreecommitdiffstats
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)
downloadop-kernel-dev-eee5cc2702929fd41cce28058dc6d6717f723f87.zip
op-kernel-dev-eee5cc2702929fd41cce28058dc6d6717f723f87.tar.gz
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 a1465b1..fffbed4 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -685,7 +685,6 @@ static int do_dentry_open(struct file *f,
}
f->f_mapping = inode->i_mapping;
- file_sb_list_add(f, inode->i_sb);
if (unlikely(f->f_mode & FMODE_PATH)) {
f->f_op = &empty_fops;
@@ -724,7 +723,6 @@ static int do_dentry_open(struct file *f,
cleanup_all:
fops_put(f->f_op);
- file_sb_list_del(f);
if (f->f_mode & FMODE_WRITE) {
put_write_access(inode);
if (!special_file(inode->i_mode)) {
OpenPOWER on IntegriCloud