diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-12-07 18:16:57 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-06 23:16:53 -0500 |
commit | d8c9584ea2a92879f471fd3a2be3af6c534fb035 (patch) | |
tree | 3541b9c6228f820bdc65e4875156eb27b1c91cb1 /fs/binfmt_misc.c | |
parent | ece2ccb668046610189d88d6aaf05aeb09c988a1 (diff) |
vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r-- | fs/binfmt_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 1e9edbdeda7e..a9198dfd5f85 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -560,7 +560,7 @@ static ssize_t bm_entry_write(struct file *file, const char __user *buffer, | |||
560 | break; | 560 | break; |
561 | case 2: set_bit(Enabled, &e->flags); | 561 | case 2: set_bit(Enabled, &e->flags); |
562 | break; | 562 | break; |
563 | case 3: root = dget(file->f_path.mnt->mnt_sb->s_root); | 563 | case 3: root = dget(file->f_path.dentry->d_sb->s_root); |
564 | mutex_lock(&root->d_inode->i_mutex); | 564 | mutex_lock(&root->d_inode->i_mutex); |
565 | 565 | ||
566 | kill_node(e); | 566 | kill_node(e); |
@@ -587,7 +587,7 @@ static ssize_t bm_register_write(struct file *file, const char __user *buffer, | |||
587 | Node *e; | 587 | Node *e; |
588 | struct inode *inode; | 588 | struct inode *inode; |
589 | struct dentry *root, *dentry; | 589 | struct dentry *root, *dentry; |
590 | struct super_block *sb = file->f_path.mnt->mnt_sb; | 590 | struct super_block *sb = file->f_path.dentry->d_sb; |
591 | int err = 0; | 591 | int err = 0; |
592 | 592 | ||
593 | e = create_entry(buffer, count); | 593 | e = create_entry(buffer, count); |
@@ -666,7 +666,7 @@ static ssize_t bm_status_write(struct file * file, const char __user * buffer, | |||
666 | switch (res) { | 666 | switch (res) { |
667 | case 1: enabled = 0; break; | 667 | case 1: enabled = 0; break; |
668 | case 2: enabled = 1; break; | 668 | case 2: enabled = 1; break; |
669 | case 3: root = dget(file->f_path.mnt->mnt_sb->s_root); | 669 | case 3: root = dget(file->f_path.dentry->d_sb->s_root); |
670 | mutex_lock(&root->d_inode->i_mutex); | 670 | mutex_lock(&root->d_inode->i_mutex); |
671 | 671 | ||
672 | while (!list_empty(&entries)) | 672 | while (!list_empty(&entries)) |