git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'y2038-vfs' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground
[sfrench/cifs-2.6.git]
/
fs
/
affs
/
amigaffs.c
diff --git
a/fs/affs/amigaffs.c
b/fs/affs/amigaffs.c
index 14a6c1b90c9fb8e0652ad848fa46536cfd96484b..f708c45d5f664d84475f6a42214d0732c43325b9 100644
(file)
--- a/
fs/affs/amigaffs.c
+++ b/
fs/affs/amigaffs.c
@@
-375,7
+375,7
@@
affs_secs_to_datestamp(time64_t secs, struct affs_date *ds)
u32 minute;
s32 rem;
- secs -= sys_tz.tz_minuteswest * 60 +
((8 * 365 + 2) * 24 * 60 * 60)
;
+ secs -= sys_tz.tz_minuteswest * 60 +
AFFS_EPOCH_DELTA
;
if (secs < 0)
secs = 0;
days = div_s64_rem(secs, 86400, &rem);