Skip to content

Commit

Permalink
nilfs2: remove meaningless EBUSY case from nilfs_get_sb function
Browse files Browse the repository at this point in the history
The following EBUSY case in nilfs_get_sb() is meaningless.  Indeed,
this error code is never returned to the caller.

    if (!s->s_root) {
          ...
    } else if (!(s->s_flags & MS_RDONLY)) {
        err = -EBUSY;
    }

This simply removes the else case.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
konis authored and Al Viro committed Jun 12, 2009
1 parent 0c95ee1 commit 81fc20b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/nilfs2/super.c
Expand Up @@ -1186,8 +1186,6 @@ nilfs_get_sb(struct file_system_type *fs_type, int flags,

s->s_flags |= MS_ACTIVE;
need_to_close = 0;
} else if (!(s->s_flags & MS_RDONLY)) {
err = -EBUSY;
}

up(&sd.bdev->bd_mount_sem);
Expand Down

0 comments on commit 81fc20b

Please sign in to comment.