diff options
author | Dave Chinner <dchinner@redhat.com> | 2014-10-02 03:18:13 +0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-10-02 03:18:13 +0400 |
commit | e076b0f3a5c472e77c0a0e163188f2761e8b4fed (patch) | |
tree | 21f845bf245552bdd3a6e34526faf7e01186ca3d /fs/xfs/xfs_inode.c | |
parent | b1d6cc02f2f6a590c4d8dc2c3bcf7be3b9419945 (diff) | |
download | linux-e076b0f3a5c472e77c0a0e163188f2761e8b4fed.tar.xz |
xfs: kill time.h
The typedef for timespecs and nanotime() are completely unnecessary,
and delay() can be moved to fs/xfs/linux.h, which means this file
can go away.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index c92cb48617d1..4c130ffcf0cf 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -654,7 +654,7 @@ xfs_ialloc( xfs_inode_t *ip; uint flags; int error; - timespec_t tv; + struct timespec tv; /* * Call the space management code to pick @@ -720,7 +720,7 @@ xfs_ialloc( ip->i_d.di_nextents = 0; ASSERT(ip->i_d.di_nblocks == 0); - nanotime(&tv); + tv = current_fs_time(mp->m_super); ip->i_d.di_mtime.t_sec = (__int32_t)tv.tv_sec; ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec; ip->i_d.di_atime = ip->i_d.di_mtime; |