diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-02-08 07:20:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:35 -0500 |
commit | 5e0f001736651f6f859aeca95f895c829d223cdb (patch) | |
tree | a947fba71ee75b3d12f274c3663be82add9bf5df /fs/udf/super.c | |
parent | 4daa1b87992ff210c19a6347cabde22335667004 (diff) |
udf: convert byte order of constant instead of variable
convert byte order of constant instead of variable,
which can be done at compile time (vs run time)
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: Jan Kara <jack@suse.cz>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r-- | fs/udf/super.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 12fb91d23a83..b10295865e5a 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -1014,20 +1014,20 @@ static int udf_load_partdesc(struct super_block *sb, struct buffer_head *bh) | |||
1014 | le32_to_cpu(p->partitionLength); /* blocks */ | 1014 | le32_to_cpu(p->partitionLength); /* blocks */ |
1015 | map->s_partition_root = | 1015 | map->s_partition_root = |
1016 | le32_to_cpu(p->partitionStartingLocation); | 1016 | le32_to_cpu(p->partitionStartingLocation); |
1017 | if (le32_to_cpu(p->accessType) == | 1017 | if (p->accessType == |
1018 | PD_ACCESS_TYPE_READ_ONLY) | 1018 | cpu_to_le32(PD_ACCESS_TYPE_READ_ONLY)) |
1019 | map->s_partition_flags |= | 1019 | map->s_partition_flags |= |
1020 | UDF_PART_FLAG_READ_ONLY; | 1020 | UDF_PART_FLAG_READ_ONLY; |
1021 | if (le32_to_cpu(p->accessType) == | 1021 | if (p->accessType == |
1022 | PD_ACCESS_TYPE_WRITE_ONCE) | 1022 | cpu_to_le32(PD_ACCESS_TYPE_WRITE_ONCE)) |
1023 | map->s_partition_flags |= | 1023 | map->s_partition_flags |= |
1024 | UDF_PART_FLAG_WRITE_ONCE; | 1024 | UDF_PART_FLAG_WRITE_ONCE; |
1025 | if (le32_to_cpu(p->accessType) == | 1025 | if (p->accessType == |
1026 | PD_ACCESS_TYPE_REWRITABLE) | 1026 | cpu_to_le32(PD_ACCESS_TYPE_REWRITABLE)) |
1027 | map->s_partition_flags |= | 1027 | map->s_partition_flags |= |
1028 | UDF_PART_FLAG_REWRITABLE; | 1028 | UDF_PART_FLAG_REWRITABLE; |
1029 | if (le32_to_cpu(p->accessType) == | 1029 | if (p->accessType == |
1030 | PD_ACCESS_TYPE_OVERWRITABLE) | 1030 | cpu_to_le32(PD_ACCESS_TYPE_OVERWRITABLE)) |
1031 | map->s_partition_flags |= | 1031 | map->s_partition_flags |= |
1032 | UDF_PART_FLAG_OVERWRITABLE; | 1032 | UDF_PART_FLAG_OVERWRITABLE; |
1033 | 1033 | ||