summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/ext4/disklayout/block_group.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/fs/ext4/disklayout/block_group.go')
-rw-r--r--pkg/sentry/fs/ext4/disklayout/block_group.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/sentry/fs/ext4/disklayout/block_group.go b/pkg/sentry/fs/ext4/disklayout/block_group.go
index 7359df5b9..7df76a036 100644
--- a/pkg/sentry/fs/ext4/disklayout/block_group.go
+++ b/pkg/sentry/fs/ext4/disklayout/block_group.go
@@ -128,8 +128,8 @@ func (f BGFlags) ToInt() uint16 {
// BGFlagsFromInt converts the 16-bit flag representation to a BGFlags struct.
func BGFlagsFromInt(flags uint16) BGFlags {
return BGFlags{
- InodeUninit: (flags & BgInodeUninit) > 0,
- BlockUninit: (flags & BgBlockUninit) > 0,
- InodeZeroed: (flags & BgInodeZeroed) > 0,
+ InodeUninit: flags&BgInodeUninit > 0,
+ BlockUninit: flags&BgBlockUninit > 0,
+ InodeZeroed: flags&BgInodeZeroed > 0,
}
}