]> git.baikalelectronics.ru Git - kernel.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)
commit254045e02b50701186545352691119eb7c827a91
treee0c45b2c241eb8f3e6c4df347f172a54c175455e
parentaf223eac15f659880c341bd8eab02da9821357c6
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