conf: flatten logic in mount_entry()

parent af24b9e5
...@@ -1875,11 +1875,9 @@ static int mount_entry(const char *fsname, const char *target, ...@@ -1875,11 +1875,9 @@ static int mount_entry(const char *fsname, const char *target,
* does not have any flags which are not already in * does not have any flags which are not already in
* mountflags, then skip the remount. * mountflags, then skip the remount.
*/ */
if (!(mountflags & MS_REMOUNT)) { if (!(mountflags & MS_REMOUNT) && !(required_flags & ~mountflags)) {
if (!(required_flags & ~mountflags)) { DEBUG("Mountflags already were %lu, skipping remount", mountflags);
DEBUG("Mountflags already were %lu, skipping remount", mountflags); goto skipremount;
goto skipremount;
}
} }
mountflags |= required_flags; mountflags |= required_flags;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment