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)
commit619ed39242d901339c09faa1b52dad47b0476f6f
treeaf5d5995c679a1d338f4e78867b9c848e98bc126
parent8cd1e73111f95ca915f37ed534bbfbdf24fc1ca8
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