use bitclear instead of seperating them and fix some typo
Signed-off-by: kevinetc123 <kaiwentan@harmonycloud.cn>
This commit is contained in:
parent
42a17f9391
commit
6425680d94
2 changed files with 2 additions and 2 deletions
2
mount.go
2
mount.go
|
@ -86,7 +86,7 @@ func parseMountOptions(options []string) (int, string) {
|
|||
// then it is a data value for a specific fs type
|
||||
if f, exists := flags[o]; exists && f.flag != 0 {
|
||||
if f.clear {
|
||||
flag &= ^f.flag
|
||||
flag &^= f.flag
|
||||
} else {
|
||||
flag |= f.flag
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ const prSetChildSubreaper = 36
|
|||
|
||||
// PR_GET_CHILD_SUBREAPER allows retrieving the current child
|
||||
// subreaper.
|
||||
// Return the "child subreaper" setting of the caller, in the
|
||||
// Returns the "child subreaper" setting of the caller, in the
|
||||
// location pointed to by (int *) arg2.
|
||||
const prGetChildSubreaper = 37
|
||||
|
||||
|
|
Loading…
Reference in a new issue