summaryrefslogtreecommitdiffstats
path: root/fs/udf/super.c
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2008-02-10 11:29:10 +0100
committerJan Kara <jack@suse.cz>2008-04-17 14:22:42 +0200
commitaf15a298a49c9b5844cdaf70e10eb808e54ead2c (patch)
tree136c9daa03ed307bb2f943e30d078429960ccb70 /fs/udf/super.c
parent56774805d5eeecd3f1fb700603e593a35dc523c8 (diff)
downloadkernel-crypto-af15a298a49c9b5844cdaf70e10eb808e54ead2c.tar.gz
kernel-crypto-af15a298a49c9b5844cdaf70e10eb808e54ead2c.tar.xz
kernel-crypto-af15a298a49c9b5844cdaf70e10eb808e54ead2c.zip
udf: remove unneeded kernel_timestamp type
remove now unneeded kernel_timestamp type with conversion functions Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r--fs/udf/super.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index 4d2ecee1970..829ddfa5a14 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -945,12 +945,13 @@ static void udf_load_pvoldesc(struct super_block *sb, struct buffer_head *bh)
if (udf_disk_stamp_to_time(&UDF_SB(sb)->s_record_time,
pvoldesc->recordingDateAndTime)) {
- kernel_timestamp ts;
- ts = lets_to_cpu(pvoldesc->recordingDateAndTime);
+#ifdef UDFFS_DEBUG
+ timestamp *ts = &pvoldesc->recordingDateAndTime;
udf_debug("recording time %04u/%02u/%02u"
" %02u:%02u (%x)\n",
- ts.year, ts.month, ts.day, ts.hour,
- ts.minute, ts.typeAndTimezone);
+ le16_to_cpu(ts->year), ts->month, ts->day, ts->hour,
+ ts->minute, le16_to_cpu(ts->typeAndTimezone));
+#endif
}
if (!udf_build_ustr(&instr, pvoldesc->volIdent, 32))