aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-06-18 20:00:08 +0200
committerDavid Sterba <dsterba@suse.com>2019-07-02 12:30:50 +0200
commitf262fa8de6a2510e13a59ad3ecdcb0f2d468bb98 (patch)
tree79e84cd766bed65d4e8138608815011990fc2210 /fs/btrfs/file.c
parentbtrfs: use common helpers for extent IO state insertion messages (diff)
downloadlinux-dev-f262fa8de6a2510e13a59ad3ecdcb0f2d468bb98.tar.xz
linux-dev-f262fa8de6a2510e13a59ad3ecdcb0f2d468bb98.zip
btrfs: drop default value assignments in enums
A few more instances whre we don't need to specify the values as long as they are the same that enum assigns automatically. All of the enums are in-memory only and nothing relies on the exact values. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index b455bdf46faa..a8e0fc2d1c86 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -2796,9 +2796,9 @@ static int btrfs_fallocate_update_isize(struct inode *inode,
}
enum {
- RANGE_BOUNDARY_WRITTEN_EXTENT = 0,
- RANGE_BOUNDARY_PREALLOC_EXTENT = 1,
- RANGE_BOUNDARY_HOLE = 2,
+ RANGE_BOUNDARY_WRITTEN_EXTENT,
+ RANGE_BOUNDARY_PREALLOC_EXTENT,
+ RANGE_BOUNDARY_HOLE,
};
static int btrfs_zero_range_check_range_boundary(struct inode *inode,