Re: [PATCH 14/15] btrfs: use a runtime flag to indicate an inode is a free space inode

Anand Jain
2022-09-15T13:01:47Z

On 15/09/2022 07:04, Josef Bacik wrote:
> We always check the root of an inode as well as it's inode number to
> determine if it's a free space inode. This is problematic as the helper
> is in a header file where it doesn't have the fs_info definition. To
> avoid this and make the check a little cleaner simply add a flag to the
> runtime_flags to indicate that the inode is a free space inode, set that
> when we create the inode, and then change the helper to check for this
> flag.
>
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>

Reviewed-by: Anand Jain <anand.jain@oracle.com>