History

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull vfs fixes from Al Viro: - fix orangefs handling of faults on write() - I'd missed that one back when orangefs was going through review. - readdir counterpart of "9p: cope with bogus responses from server in p9_client_{read,write}" - server might be lying or broken, and we'd better not overrun the kmalloc'ed buffer we are copying the results into. - NFS O_DIRECT read/write can leave iov_iter advanced by too much; that's what had been causing iov_iter_pipe() warnings davej had been seeing. - statx_timestamp.tv_nsec type fix (s32 -> u32). That one really should go in before 4.11. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: uapi: change the type of struct statx_timestamp.tv_nsec to unsigned fix nfs O_DIRECT advancing iov_iter too much p9_client_readdir() fix orangefs_bufmap_copy_from_iovec(): fix EFAULT handling

Linus Torvalds committed 9 years ago

Commit f56fc7b2 parents 59372bb 17419374 files · +25 −18Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/uapi/linux/stat.h+2−6
@@ -48,17 +48,13 @@ · 47 unmodified lines
4848 * tv_sec holds the number of seconds before (negative) or after (positive)
4949 * 00:00:00 1st January 1970 UTC.
5050 *
51− * tv_nsec holds a number of nanoseconds before (0..-999,999,999 if tv_sec is
52− * negative) or after (0..999,999,999 if tv_sec is positive) the tv_sec time.
53− *
54− * Note that if both tv_sec and tv_nsec are non-zero, then the two values must
55− * either be both positive or both negative.
51+ * tv_nsec holds a number of nanoseconds (0..999,999,999) after the tv_sec time.
5652 *
5753 * __reserved is held in case we need a yet finer resolution.
5854 */
5955 struct statx_timestamp {
6056 __s64 tv_sec;
61− __s32 tv_nsec;
57+ __u32 tv_nsec;
6258 __s32 __reserved;
6359 };
6460