ext4: Fix time encoding with extra epoch bits
authorTheodore Ts'o <tytso@mit.edu>
Wed, 30 Sep 2009 05:13:55 +0000 (01:13 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:07:11 +0000 (08:07 -0800)
commit28c72b7fbc403ec439b0108e6559c9c67a3afe8d
treef0c081d72fdeeb2549b0392690c951a57ba4ba58
parente39f1920521ed14d874d638265e27a16526df494
ext4: Fix time encoding with extra epoch bits

(cherry picked from commit c1fccc0696bcaff6008c11865091f5ec4b0937ab)

"Looking at ext4.h, I think the setting of extra time fields forgets to
mask the epoch bits so the epoch part overwrites nsec part. The second
change is only for coherency (2 -> EXT4_EPOCH_BITS)."

Thanks to Damien Guibouret for pointing out this problem.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/ext4.h