diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2019-06-28 12:06:17 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-06-28 12:07:28 -0700 |
commit | 7c13789818ec43644c3a159cd5cad2a5aad2e26d (patch) | |
tree | b8ee6979f01ea8652aa7451f67a5438f2f5b199c /pkg/sentry/fs/ext4/disklayout/block_group.go | |
parent | 8a625ceeb173307094e81d273458b6651e54220a (diff) |
Superblock interface in the disk layout package for ext4.
PiperOrigin-RevId: 255644277
Diffstat (limited to 'pkg/sentry/fs/ext4/disklayout/block_group.go')
-rw-r--r-- | pkg/sentry/fs/ext4/disklayout/block_group.go | 6 |
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, } } |