diff options
author | Jan Kara <jack@suse.cz> | 2018-02-09 06:52:28 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2018-02-16 05:15:16 -0500 |
commit | 4b8d425215f9a5f04d6ca51769a1d26cbc084aec (patch) | |
tree | 36429ccf5bb42a133d7b948f1f5e3590c28fdfe2 | |
parent | 67621675e9636ed272a4f0235215accdfbc99768 (diff) |
udf: Convert descriptor index definitions to enum
Convert index definitions from defines to enum. It is a shorter
description and easier to modify. Also remove VDS_POS_VOL_DESC_PTR since
it is unused.
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | fs/udf/super.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 456d737fc7ca..7712fa4b5a3d 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -64,14 +64,15 @@ | |||
64 | #include <linux/init.h> | 64 | #include <linux/init.h> |
65 | #include <linux/uaccess.h> | 65 | #include <linux/uaccess.h> |
66 | 66 | ||
67 | #define VDS_POS_PRIMARY_VOL_DESC 0 | 67 | enum { |
68 | #define VDS_POS_UNALLOC_SPACE_DESC 1 | 68 | VDS_POS_PRIMARY_VOL_DESC, |
69 | #define VDS_POS_LOGICAL_VOL_DESC 2 | 69 | VDS_POS_UNALLOC_SPACE_DESC, |
70 | #define VDS_POS_PARTITION_DESC 3 | 70 | VDS_POS_LOGICAL_VOL_DESC, |
71 | #define VDS_POS_IMP_USE_VOL_DESC 4 | 71 | VDS_POS_PARTITION_DESC, |
72 | #define VDS_POS_VOL_DESC_PTR 5 | 72 | VDS_POS_IMP_USE_VOL_DESC, |
73 | #define VDS_POS_TERMINATING_DESC 6 | 73 | VDS_POS_TERMINATING_DESC, |
74 | #define VDS_POS_LENGTH 7 | 74 | VDS_POS_LENGTH |
75 | }; | ||
75 | 76 | ||
76 | #define VSD_FIRST_SECTOR_OFFSET 32768 | 77 | #define VSD_FIRST_SECTOR_OFFSET 32768 |
77 | #define VSD_MAX_SECTOR_OFFSET 0x800000 | 78 | #define VSD_MAX_SECTOR_OFFSET 0x800000 |