]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: cleanup iterating over prop_handlers array
authorByongho Lee <bhlee.kernel@gmail.com>
Thu, 8 Oct 2015 11:49:34 +0000 (20:49 +0900)
committerDavid Sterba <dsterba@suse.com>
Wed, 21 Oct 2015 16:28:48 +0000 (18:28 +0200)
commitf3422b1f4db61c76918534496834a8392864bc7c
treeaf5d5995c679a1d338f4e78867b9c848e98bc126
parent689ece5c33ad8242516a6d946bc6e1823aefd98f
btrfs: cleanup iterating over prop_handlers array

This patch eliminates the last item of prop_handlers array which is used
to check end of array and instead uses ARRAY_SIZE macro.
Though this is a very tiny optimization, using ARRAY_SIZE macro is a
good practice to iterate array.

Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/props.c