@@ -1227,16 +1227,14 @@ static void udf_fill_inode(struct inode *inode, struct buffer_head *bh)
12271227 inode -> i_blocks = le64_to_cpu (fe -> logicalBlocksRecorded ) <<
12281228 (inode -> i_sb -> s_blocksize_bits - 9 );
12291229
1230- if (!udf_stamp_to_time (& inode -> i_atime ,
1231- lets_to_cpu (fe -> accessTime )))
1230+ if (!udf_disk_stamp_to_time (& inode -> i_atime , fe -> accessTime ))
12321231 inode -> i_atime = sbi -> s_record_time ;
12331232
1234- if (!udf_stamp_to_time (& inode -> i_mtime ,
1235- lets_to_cpu ( fe -> modificationTime ) ))
1233+ if (!udf_disk_stamp_to_time (& inode -> i_mtime ,
1234+ fe -> modificationTime ))
12361235 inode -> i_mtime = sbi -> s_record_time ;
12371236
1238- if (!udf_stamp_to_time (& inode -> i_ctime ,
1239- lets_to_cpu (fe -> attrTime )))
1237+ if (!udf_disk_stamp_to_time (& inode -> i_ctime , fe -> attrTime ))
12401238 inode -> i_ctime = sbi -> s_record_time ;
12411239
12421240 iinfo -> i_unique = le64_to_cpu (fe -> uniqueID );
@@ -1247,20 +1245,17 @@ static void udf_fill_inode(struct inode *inode, struct buffer_head *bh)
12471245 inode -> i_blocks = le64_to_cpu (efe -> logicalBlocksRecorded ) <<
12481246 (inode -> i_sb -> s_blocksize_bits - 9 );
12491247
1250- if (!udf_stamp_to_time (& inode -> i_atime ,
1251- lets_to_cpu (efe -> accessTime )))
1248+ if (!udf_disk_stamp_to_time (& inode -> i_atime , efe -> accessTime ))
12521249 inode -> i_atime = sbi -> s_record_time ;
12531250
1254- if (!udf_stamp_to_time (& inode -> i_mtime ,
1255- lets_to_cpu ( efe -> modificationTime ) ))
1251+ if (!udf_disk_stamp_to_time (& inode -> i_mtime ,
1252+ efe -> modificationTime ))
12561253 inode -> i_mtime = sbi -> s_record_time ;
12571254
1258- if (!udf_stamp_to_time (& iinfo -> i_crtime ,
1259- lets_to_cpu (efe -> createTime )))
1255+ if (!udf_disk_stamp_to_time (& iinfo -> i_crtime , efe -> createTime ))
12601256 iinfo -> i_crtime = sbi -> s_record_time ;
12611257
1262- if (!udf_stamp_to_time (& inode -> i_ctime ,
1263- lets_to_cpu (efe -> attrTime )))
1258+ if (!udf_disk_stamp_to_time (& inode -> i_ctime , efe -> attrTime ))
12641259 inode -> i_ctime = sbi -> s_record_time ;
12651260
12661261 iinfo -> i_unique = le64_to_cpu (efe -> uniqueID );
@@ -1382,7 +1377,6 @@ static int udf_update_inode(struct inode *inode, int do_sync)
13821377 uint32_t udfperms ;
13831378 uint16_t icbflags ;
13841379 uint16_t crclen ;
1385- kernel_timestamp cpu_time ;
13861380 int err = 0 ;
13871381 struct udf_sb_info * sbi = UDF_SB (inode -> i_sb );
13881382 unsigned char blocksize_bits = inode -> i_sb -> s_blocksize_bits ;
@@ -1485,12 +1479,9 @@ static int udf_update_inode(struct inode *inode, int do_sync)
14851479 (inode -> i_blocks + (1 << (blocksize_bits - 9 )) - 1 ) >>
14861480 (blocksize_bits - 9 ));
14871481
1488- if (udf_time_to_stamp (& cpu_time , inode -> i_atime ))
1489- fe -> accessTime = cpu_to_lets (cpu_time );
1490- if (udf_time_to_stamp (& cpu_time , inode -> i_mtime ))
1491- fe -> modificationTime = cpu_to_lets (cpu_time );
1492- if (udf_time_to_stamp (& cpu_time , inode -> i_ctime ))
1493- fe -> attrTime = cpu_to_lets (cpu_time );
1482+ udf_time_to_disk_stamp (& fe -> accessTime , inode -> i_atime );
1483+ udf_time_to_disk_stamp (& fe -> modificationTime , inode -> i_mtime );
1484+ udf_time_to_disk_stamp (& fe -> attrTime , inode -> i_ctime );
14941485 memset (& (fe -> impIdent ), 0 , sizeof (regid ));
14951486 strcpy (fe -> impIdent .ident , UDF_ID_DEVELOPER );
14961487 fe -> impIdent .identSuffix [0 ] = UDF_OS_CLASS_UNIX ;
@@ -1525,14 +1516,10 @@ static int udf_update_inode(struct inode *inode, int do_sync)
15251516 iinfo -> i_crtime .tv_nsec > inode -> i_ctime .tv_nsec ))
15261517 iinfo -> i_crtime = inode -> i_ctime ;
15271518
1528- if (udf_time_to_stamp (& cpu_time , inode -> i_atime ))
1529- efe -> accessTime = cpu_to_lets (cpu_time );
1530- if (udf_time_to_stamp (& cpu_time , inode -> i_mtime ))
1531- efe -> modificationTime = cpu_to_lets (cpu_time );
1532- if (udf_time_to_stamp (& cpu_time , iinfo -> i_crtime ))
1533- efe -> createTime = cpu_to_lets (cpu_time );
1534- if (udf_time_to_stamp (& cpu_time , inode -> i_ctime ))
1535- efe -> attrTime = cpu_to_lets (cpu_time );
1519+ udf_time_to_disk_stamp (& efe -> accessTime , inode -> i_atime );
1520+ udf_time_to_disk_stamp (& efe -> modificationTime , inode -> i_mtime );
1521+ udf_time_to_disk_stamp (& efe -> createTime , iinfo -> i_crtime );
1522+ udf_time_to_disk_stamp (& efe -> attrTime , inode -> i_ctime );
15361523
15371524 memset (& (efe -> impIdent ), 0 , sizeof (regid ));
15381525 strcpy (efe -> impIdent .ident , UDF_ID_DEVELOPER );
0 commit comments