diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-06-07 18:39:28 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-12 03:36:17 +0200 |
commit | 81fc20bd0e75ba6357bce2403767d7c2585d8f28 (patch) | |
tree | e3680d7c8184da3cbb4b7efe83fe99626d08cd68 /fs/nilfs2/super.c | |
parent | remove the call to ->write_super in __sync_filesystem (diff) | |
download | linux-81fc20bd0e75ba6357bce2403767d7c2585d8f28.tar.xz linux-81fc20bd0e75ba6357bce2403767d7c2585d8f28.zip |
nilfs2: remove meaningless EBUSY case from nilfs_get_sb function
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>
Diffstat (limited to '')
-rw-r--r-- | fs/nilfs2/super.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 122dc1e489fb..1c505d0e031e 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c @@ -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); |