projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c95ee1
)
nilfs2: remove meaningless EBUSY case from nilfs_get_sb function
author
Ryusuke Konishi
<konishi.ryusuke@lab.ntt.co.jp>
Sun, 7 Jun 2009 16:39:28 +0000
(
01:39
+0900)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 12 Jun 2009 01:36:17 +0000
(21:36 -0400)
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>
fs/nilfs2/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nilfs2/super.c
b/fs/nilfs2/super.c
index 122dc1e489fb2ccecc3acb3bd8dd4bebc7cf3b11..1c505d0e031ed91c019ad07893f3b43323f6e058 100644
(file)
--- 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);