Re: [PATCH 09/17] btrfs: add nesting tags to the locking helpers

David Sterba
2020-08-14T14:42:49Z

On Mon, Aug 10, 2020 at 11:42:34AM -0400, Josef Bacik wrote:
> --- a/fs/btrfs/locking.h
> +++ b/fs/btrfs/locking.h
> @@ -16,12 +16,18 @@
> #define BTRFS_WRITE_LOCK_BLOCKING 3
> #define BTRFS_READ_LOCK_BLOCKING 4
>
> +enum btrfs_lock_nesting {
> + BTRFS_NESTING_NORMAL = 0,

It should be safe to use the enum auto numbering, that starts from 0.