diff options
| author | David Sterba <[email protected]> | 2018-11-27 14:25:13 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-12-17 13:51:43 +0000 |
| commit | bbe339cc323ca9d2a57ac203d2d9d11a09655dcc (patch) | |
| tree | 2b779c4fc5d3d90ead96462a006cf7ab94aa9974 /fs/btrfs/btrfs_inode.h | |
| parent | btrfs: switch BTRFS_ORDERED_* to enums (diff) | |
| download | kernel-bbe339cc323ca9d2a57ac203d2d9d11a09655dcc.tar.gz kernel-bbe339cc323ca9d2a57ac203d2d9d11a09655dcc.zip | |
btrfs: drop extra enum initialization where using defaults
The first auto-assigned value to enum is 0, we can use that and not
initialize all members where the auto-increment does the same. This is
used for values that are not part of on-disk format.
Reviewed-by: Omar Sandoval <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
| -rw-r--r-- | fs/btrfs/btrfs_inode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index 4de321aee7a5..fc25607304f2 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -20,7 +20,7 @@ * new data the application may have written before commit. */ enum { - BTRFS_INODE_ORDERED_DATA_CLOSE = 0, + BTRFS_INODE_ORDERED_DATA_CLOSE, BTRFS_INODE_DUMMY, BTRFS_INODE_IN_DEFRAG, BTRFS_INODE_HAS_ASYNC_EXTENT, |
