conf: flatten logic in mount_entry()

parent af24b9e5
......@@ -1875,11 +1875,9 @@ static int mount_entry(const char *fsname, const char *target,
* does not have any flags which are not already in
* mountflags, then skip the remount.
*/
if (!(mountflags & MS_REMOUNT)) {
if (!(required_flags & ~mountflags)) {
DEBUG("Mountflags already were %lu, skipping remount", mountflags);
goto skipremount;
}
if (!(mountflags & MS_REMOUNT) && !(required_flags & ~mountflags)) {
DEBUG("Mountflags already were %lu, skipping remount", mountflags);
goto skipremount;
}
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