diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-28 21:34:21 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-28 21:34:21 -0400 |
| commit | ee948837d7fa89127373c139766aacf6b02a9225 (patch) | |
| tree | 05c54ffda58f96456b0d5e60dc7355595e3a0b0a | |
| parent | f51dcd0f621caac5380ce90fbbeafc32ce4517ae (diff) | |
[fix] get rid of checking for absent device name in vfs_get_tree()
It has no business being there, it's checked by relevant ->get_tree()
as it is *and* it returns the wrong error for no reason whatsoever.
Fixes: f3a09c92018a "introduce fs_context methods"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | fs/super.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/super.c b/fs/super.c index 583a0124bc39..2739f57515f8 100644 --- a/fs/super.c +++ b/fs/super.c | |||
| @@ -1467,11 +1467,6 @@ int vfs_get_tree(struct fs_context *fc) | |||
| 1467 | struct super_block *sb; | 1467 | struct super_block *sb; |
| 1468 | int error; | 1468 | int error; |
| 1469 | 1469 | ||
| 1470 | if (fc->fs_type->fs_flags & FS_REQUIRES_DEV && !fc->source) { | ||
| 1471 | errorf(fc, "Filesystem requires source device"); | ||
| 1472 | return -ENOENT; | ||
| 1473 | } | ||
| 1474 | |||
| 1475 | if (fc->root) | 1470 | if (fc->root) |
| 1476 | return -EBUSY; | 1471 | return -EBUSY; |
| 1477 | 1472 | ||
