]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux/fs: simplify interop and correct definition of loff_t
authormmacy <mmacy@FreeBSD.org>
Sat, 23 Feb 2019 20:45:45 +0000 (20:45 +0000)
committermmacy <mmacy@FreeBSD.org>
Sat, 23 Feb 2019 20:45:45 +0000 (20:45 +0000)
commitd75b15dcb36d80d1e7670a341dd73fbd680c4714
tree3abc1580221fc7f3da395dc1db924d4be0490fb2
parent4b8675d5ed97289ca72267451f1f2d67631ad30f
linux/fs: simplify interop and correct definition of loff_t

- offsets can be negative, loff_t needs to be signed, it also simplifies
  interop with the rest of the code base to use off_t than the actual linux
  definition "long long"
- don't rely on the defining "file" to "linux_file" in interface definitions
  as that causes heartache with includes

Reviewed by: hps@
MFC after: 1 week
Sponsored by: iX Systems
Differential Revision: https://reviews.freebsd.org/D19274
sys/compat/linuxkpi/common/include/linux/fs.h
sys/compat/linuxkpi/common/include/linux/types.h