diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2009-03-31 18:23:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 11:59:18 -0400 |
commit | 63cd885426872254e82dac2d9e13ea4f720c21dc (patch) | |
tree | addd6687abbbcd428c179260737fc97b25b7aa64 /fs/ntfs/usnjrnl.h | |
parent | 311d07611e8b354cc1ee6546e4c574c01111adc8 (diff) |
ntfs: remove private wrapper of endian helpers
The base versions handle constant folding now and are shorter than these
private wrappers, use them directly.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Anton Altaparmakov <aia21@cantab.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ntfs/usnjrnl.h')
-rw-r--r-- | fs/ntfs/usnjrnl.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/fs/ntfs/usnjrnl.h b/fs/ntfs/usnjrnl.h index 4087fbdac327..00d8e6bd7c36 100644 --- a/fs/ntfs/usnjrnl.h +++ b/fs/ntfs/usnjrnl.h | |||
@@ -116,27 +116,27 @@ typedef struct { | |||
116 | * documentation: http://www.linux-ntfs.org/ | 116 | * documentation: http://www.linux-ntfs.org/ |
117 | */ | 117 | */ |
118 | enum { | 118 | enum { |
119 | USN_REASON_DATA_OVERWRITE = const_cpu_to_le32(0x00000001), | 119 | USN_REASON_DATA_OVERWRITE = cpu_to_le32(0x00000001), |
120 | USN_REASON_DATA_EXTEND = const_cpu_to_le32(0x00000002), | 120 | USN_REASON_DATA_EXTEND = cpu_to_le32(0x00000002), |
121 | USN_REASON_DATA_TRUNCATION = const_cpu_to_le32(0x00000004), | 121 | USN_REASON_DATA_TRUNCATION = cpu_to_le32(0x00000004), |
122 | USN_REASON_NAMED_DATA_OVERWRITE = const_cpu_to_le32(0x00000010), | 122 | USN_REASON_NAMED_DATA_OVERWRITE = cpu_to_le32(0x00000010), |
123 | USN_REASON_NAMED_DATA_EXTEND = const_cpu_to_le32(0x00000020), | 123 | USN_REASON_NAMED_DATA_EXTEND = cpu_to_le32(0x00000020), |
124 | USN_REASON_NAMED_DATA_TRUNCATION= const_cpu_to_le32(0x00000040), | 124 | USN_REASON_NAMED_DATA_TRUNCATION= cpu_to_le32(0x00000040), |
125 | USN_REASON_FILE_CREATE = const_cpu_to_le32(0x00000100), | 125 | USN_REASON_FILE_CREATE = cpu_to_le32(0x00000100), |
126 | USN_REASON_FILE_DELETE = const_cpu_to_le32(0x00000200), | 126 | USN_REASON_FILE_DELETE = cpu_to_le32(0x00000200), |
127 | USN_REASON_EA_CHANGE = const_cpu_to_le32(0x00000400), | 127 | USN_REASON_EA_CHANGE = cpu_to_le32(0x00000400), |
128 | USN_REASON_SECURITY_CHANGE = const_cpu_to_le32(0x00000800), | 128 | USN_REASON_SECURITY_CHANGE = cpu_to_le32(0x00000800), |
129 | USN_REASON_RENAME_OLD_NAME = const_cpu_to_le32(0x00001000), | 129 | USN_REASON_RENAME_OLD_NAME = cpu_to_le32(0x00001000), |
130 | USN_REASON_RENAME_NEW_NAME = const_cpu_to_le32(0x00002000), | 130 | USN_REASON_RENAME_NEW_NAME = cpu_to_le32(0x00002000), |
131 | USN_REASON_INDEXABLE_CHANGE = const_cpu_to_le32(0x00004000), | 131 | USN_REASON_INDEXABLE_CHANGE = cpu_to_le32(0x00004000), |
132 | USN_REASON_BASIC_INFO_CHANGE = const_cpu_to_le32(0x00008000), | 132 | USN_REASON_BASIC_INFO_CHANGE = cpu_to_le32(0x00008000), |
133 | USN_REASON_HARD_LINK_CHANGE = const_cpu_to_le32(0x00010000), | 133 | USN_REASON_HARD_LINK_CHANGE = cpu_to_le32(0x00010000), |
134 | USN_REASON_COMPRESSION_CHANGE = const_cpu_to_le32(0x00020000), | 134 | USN_REASON_COMPRESSION_CHANGE = cpu_to_le32(0x00020000), |
135 | USN_REASON_ENCRYPTION_CHANGE = const_cpu_to_le32(0x00040000), | 135 | USN_REASON_ENCRYPTION_CHANGE = cpu_to_le32(0x00040000), |
136 | USN_REASON_OBJECT_ID_CHANGE = const_cpu_to_le32(0x00080000), | 136 | USN_REASON_OBJECT_ID_CHANGE = cpu_to_le32(0x00080000), |
137 | USN_REASON_REPARSE_POINT_CHANGE = const_cpu_to_le32(0x00100000), | 137 | USN_REASON_REPARSE_POINT_CHANGE = cpu_to_le32(0x00100000), |
138 | USN_REASON_STREAM_CHANGE = const_cpu_to_le32(0x00200000), | 138 | USN_REASON_STREAM_CHANGE = cpu_to_le32(0x00200000), |
139 | USN_REASON_CLOSE = const_cpu_to_le32(0x80000000), | 139 | USN_REASON_CLOSE = cpu_to_le32(0x80000000), |
140 | }; | 140 | }; |
141 | 141 | ||
142 | typedef le32 USN_REASON_FLAGS; | 142 | typedef le32 USN_REASON_FLAGS; |
@@ -148,9 +148,9 @@ typedef le32 USN_REASON_FLAGS; | |||
148 | * http://www.linux-ntfs.org/ | 148 | * http://www.linux-ntfs.org/ |
149 | */ | 149 | */ |
150 | enum { | 150 | enum { |
151 | USN_SOURCE_DATA_MANAGEMENT = const_cpu_to_le32(0x00000001), | 151 | USN_SOURCE_DATA_MANAGEMENT = cpu_to_le32(0x00000001), |
152 | USN_SOURCE_AUXILIARY_DATA = const_cpu_to_le32(0x00000002), | 152 | USN_SOURCE_AUXILIARY_DATA = cpu_to_le32(0x00000002), |
153 | USN_SOURCE_REPLICATION_MANAGEMENT = const_cpu_to_le32(0x00000004), | 153 | USN_SOURCE_REPLICATION_MANAGEMENT = cpu_to_le32(0x00000004), |
154 | }; | 154 | }; |
155 | 155 | ||
156 | typedef le32 USN_SOURCE_INFO_FLAGS; | 156 | typedef le32 USN_SOURCE_INFO_FLAGS; |