From 7c13789818ec43644c3a159cd5cad2a5aad2e26d Mon Sep 17 00:00:00 2001 From: Ayush Ranjan Date: Fri, 28 Jun 2019 12:06:17 -0700 Subject: Superblock interface in the disk layout package for ext4. PiperOrigin-RevId: 255644277 --- pkg/sentry/fs/ext4/disklayout/block_group.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/sentry/fs/ext4/disklayout/block_group.go') 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, } } -- cgit v1.2.3