[PATCH 1/2] btrfs: provide enumeration for __merge_refs mode argument

2017-03-13 Thread ednadolski
From: Edmund Nadolski Replace hardcoded numeric values for __merge_refs 'mode' argument with descriptive constants. Signed-off-by: Edmund Nadolski Reviewed-by: Jeff Mahoney --- fs/btrfs/backref.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/fs/btrfs/back

[PATCH 0/2] Cleanup for some hardcoded constants

2017-03-13 Thread ednadolski
From: Edmund Nadolski This series replaces several hard-coded values with descriptive symbols. Edmund Nadolski (2): btrfs: provide enumeration for __merge_refs mode argument btrfs: replace hardcoded value with SEQ_NONE macro fs/btrfs/backref.c | 31 +-- fs/btrfs

[PATCH 2/2] btrfs: replace hardcoded value with SEQ_NONE macro

2017-03-13 Thread ednadolski
From: Edmund Nadolski Define the SEQ_NONE macro to replace (u64)-1 in places where said value triggers a special-case ref search behavior. Signed-off-by: Edmund Nadolski Reviewed-by: Jeff Mahoney --- fs/btrfs/backref.c | 16 fs/btrfs/backref.h | 2 ++ fs/btrfs/qgroup.c | 4

[PATCH v2 2/2] btrfs: replace hardcoded value with SEQ_LAST macro

2017-03-16 Thread ednadolski
From: Edmund Nadolski Define the SEQ_LAST macro to replace (u64)-1 in places where said value triggers a special-case ref search behavior. Signed-off-by: Edmund Nadolski Reviewed-by: Jeff Mahoney --- fs/btrfs/backref.c | 16 fs/btrfs/ctree.h | 2 ++ fs/btrfs/qgroup.c | 4

[PATCH v2 1/2] btrfs: provide enumeration for __merge_refs mode argument

2017-03-16 Thread ednadolski
From: Edmund Nadolski Replace hardcoded numeric values for __merge_refs 'mode' argument with descriptive constants. Signed-off-by: Edmund Nadolski Reviewed-by: Jeff Mahoney --- fs/btrfs/backref.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/fs/

[PATCH v2 0/2] Cleanup for some hardcoded constants

2017-03-16 Thread ednadolski
From: Edmund Nadolski This series replaces several hard-coded values with descriptive symbols. --- v2: + rename SEQ_NONE to SEQ_LAST and move definition to ctree.h + clarify comment at __merge_refs() Edmund Nadolski (2): btrfs: provide enumeration for __merge_refs mode argument btrfs: rep