diff options
author | Brian Behlendorf <[email protected]> | 2011-01-11 11:56:00 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-01-12 11:38:04 -0800 |
commit | dcd9cb5a17014b39a4440b26df1dbf78c0dde637 (patch) | |
tree | cba1f55d73cd151d3f1ce1c93793e296d0229e5d /module | |
parent | 1b439713f127db3ef5aad60aac63aad9b8384f6d (diff) |
Clean vattr_t and vsecattr_t types
Minor cleanup for the vattr_t and vsecattr_t types.
Diffstat (limited to 'module')
-rw-r--r-- | module/spl/spl-vnode.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c index 765dc4e2e..a7c7a7138 100644 --- a/module/spl/spl-vnode.c +++ b/module/spl/spl-vnode.c @@ -454,7 +454,7 @@ int vn_getattr(vnode_t *vp, vattr_t *vap, int flags, void *x3, void *x4) { struct file *fp; - struct kstat stat; + struct kstat stat; int rc; SENTRY; @@ -477,16 +477,13 @@ vn_getattr(vnode_t *vp, vattr_t *vap, int flags, void *x3, void *x4) vap->va_nlink = stat.nlink; vap->va_size = stat.size; vap->va_blocksize = stat.blksize; - vap->va_atime.tv_sec = stat.atime.tv_sec; - vap->va_atime.tv_usec = stat.atime.tv_nsec / NSEC_PER_USEC; - vap->va_mtime.tv_sec = stat.mtime.tv_sec; - vap->va_mtime.tv_usec = stat.mtime.tv_nsec / NSEC_PER_USEC; - vap->va_ctime.tv_sec = stat.ctime.tv_sec; - vap->va_ctime.tv_usec = stat.ctime.tv_nsec / NSEC_PER_USEC; + vap->va_atime = stat.atime; + vap->va_mtime = stat.mtime; + vap->va_ctime = stat.ctime; vap->va_rdev = stat.rdev; - vap->va_blocks = stat.blocks; + vap->va_nblocks = stat.blocks; - SRETURN(0); + SRETURN(0); } EXPORT_SYMBOL(vn_getattr); |