Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13f48dc9 authored by Satoru Takeuchi's avatar Satoru Takeuchi Committed by David Sterba
Browse files

btrfs: Simplify conditions about compress while mapping btrfs flags to inode flags

parent c5f4ccb2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -125,10 +125,10 @@ static unsigned int btrfs_flags_to_ioctl(unsigned int flags)
	if (flags & BTRFS_INODE_NODATACOW)
		iflags |= FS_NOCOW_FL;

	if ((flags & BTRFS_INODE_COMPRESS) && !(flags & BTRFS_INODE_NOCOMPRESS))
		iflags |= FS_COMPR_FL;
	else if (flags & BTRFS_INODE_NOCOMPRESS)
	if (flags & BTRFS_INODE_NOCOMPRESS)
		iflags |= FS_NOCOMP_FL;
	else if (flags & BTRFS_INODE_COMPRESS)
		iflags |= FS_COMPR_FL;

	return iflags;
}