]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
udf: Use time64_to_tm for timestamp conversion
authorJan Kara <jack@suse.cz>
Wed, 14 Jun 2017 07:51:20 +0000 (09:51 +0200)
committerJan Kara <jack@suse.cz>
Wed, 14 Jun 2017 09:21:02 +0000 (11:21 +0200)
commit3c399fa40fd13c5749386695e71f5f747a634f21
treee0c45b2c241eb8f3e6c4df347f172a54c175455e
parentf2e95355891153f66d4156bf3a142c6489cd78c6
udf: Use time64_to_tm for timestamp conversion

UDF on-disk time stamp is stored in a form very similar to struct tm.
Use time64_to_tm() for conversion of seconds since epoch to year, month,
... format and then just copy this as necessary to UDF on-disk
structure to simplify the code.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/udftime.c