Skip to content

Commit fe803f8

Browse files
committed
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull UDF and ext2 fixlets from Jan Kara: "A UDF fix and an ext2 cleanup" * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: ext2: drop unneeded newline udf: Sanitize nanoseconds for time stamps
2 parents ffefb18 + f463589 commit fe803f8

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎fs/ext2/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ static void ext2_clear_super_error(struct super_block *sb)
12311231
* write and hope for the best.
12321232
*/
12331233
ext2_msg(sb, KERN_ERR,
1234-
"previous I/O error to superblock detected\n");
1234+
"previous I/O error to superblock detected");
12351235
clear_buffer_write_io_error(sbh);
12361236
set_buffer_uptodate(sbh);
12371237
}

‎fs/udf/udftime.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ udf_disk_stamp_to_time(struct timespec *dest, struct timestamp src)
6262
dest->tv_sec -= offset * 60;
6363
dest->tv_nsec = 1000 * (src.centiseconds * 10000 +
6464
src.hundredsOfMicroseconds * 100 + src.microseconds);
65+
/*
66+
* Sanitize nanosecond field since reportedly some filesystems are
67+
* recorded with bogus sub-second values.
68+
*/
69+
dest->tv_nsec %= NSEC_PER_SEC;
6570
return dest;
6671
}
6772

0 commit comments

Comments
 (0)