diff options
-rw-r--r-- | fs/xfs/kmem.c | 1 | ||||
-rw-r--r-- | fs/xfs/time.h | 36 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_linux.h | 6 | ||||
-rw-r--r-- | fs/xfs/xfs_trans_inode.c | 2 |
5 files changed, 8 insertions, 41 deletions
diff --git a/fs/xfs/kmem.c b/fs/xfs/kmem.c index 844e288b9576..53e95b2a1369 100644 --- a/fs/xfs/kmem.c +++ b/fs/xfs/kmem.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/swap.h> | 21 | #include <linux/swap.h> |
22 | #include <linux/blkdev.h> | 22 | #include <linux/blkdev.h> |
23 | #include <linux/backing-dev.h> | 23 | #include <linux/backing-dev.h> |
24 | #include "time.h" | ||
25 | #include "kmem.h" | 24 | #include "kmem.h" |
26 | #include "xfs_message.h" | 25 | #include "xfs_message.h" |
27 | 26 | ||
diff --git a/fs/xfs/time.h b/fs/xfs/time.h deleted file mode 100644 index 387e695a184c..000000000000 --- a/fs/xfs/time.h +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc. | ||
3 | * All Rights Reserved. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it would be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write the Free Software Foundation, | ||
16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
17 | */ | ||
18 | #ifndef __XFS_SUPPORT_TIME_H__ | ||
19 | #define __XFS_SUPPORT_TIME_H__ | ||
20 | |||
21 | #include <linux/sched.h> | ||
22 | #include <linux/time.h> | ||
23 | |||
24 | typedef struct timespec timespec_t; | ||
25 | |||
26 | static inline void delay(long ticks) | ||
27 | { | ||
28 | schedule_timeout_uninterruptible(ticks); | ||
29 | } | ||
30 | |||
31 | static inline void nanotime(struct timespec *tvp) | ||
32 | { | ||
33 | *tvp = CURRENT_TIME; | ||
34 | } | ||
35 | |||
36 | #endif /* __XFS_SUPPORT_TIME_H__ */ | ||
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( | |||
654 | xfs_inode_t *ip; | 654 | xfs_inode_t *ip; |
655 | uint flags; | 655 | uint flags; |
656 | int error; | 656 | int error; |
657 | timespec_t tv; | 657 | struct timespec tv; |
658 | 658 | ||
659 | /* | 659 | /* |
660 | * Call the space management code to pick | 660 | * Call the space management code to pick |
@@ -720,7 +720,7 @@ xfs_ialloc( | |||
720 | ip->i_d.di_nextents = 0; | 720 | ip->i_d.di_nextents = 0; |
721 | ASSERT(ip->i_d.di_nblocks == 0); | 721 | ASSERT(ip->i_d.di_nblocks == 0); |
722 | 722 | ||
723 | nanotime(&tv); | 723 | tv = current_fs_time(mp->m_super); |
724 | ip->i_d.di_mtime.t_sec = (__int32_t)tv.tv_sec; | 724 | ip->i_d.di_mtime.t_sec = (__int32_t)tv.tv_sec; |
725 | ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec; | 725 | ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec; |
726 | ip->i_d.di_atime = ip->i_d.di_mtime; | 726 | ip->i_d.di_atime = ip->i_d.di_mtime; |
diff --git a/fs/xfs/xfs_linux.h b/fs/xfs/xfs_linux.h index d10dc8f397c9..6a51619d8690 100644 --- a/fs/xfs/xfs_linux.h +++ b/fs/xfs/xfs_linux.h | |||
@@ -56,7 +56,6 @@ typedef __uint64_t __psunsigned_t; | |||
56 | 56 | ||
57 | #include "kmem.h" | 57 | #include "kmem.h" |
58 | #include "mrlock.h" | 58 | #include "mrlock.h" |
59 | #include "time.h" | ||
60 | #include "uuid.h" | 59 | #include "uuid.h" |
61 | 60 | ||
62 | #include <linux/semaphore.h> | 61 | #include <linux/semaphore.h> |
@@ -179,6 +178,11 @@ typedef __uint64_t __psunsigned_t; | |||
179 | #define MAX(a,b) (max(a,b)) | 178 | #define MAX(a,b) (max(a,b)) |
180 | #define howmany(x, y) (((x)+((y)-1))/(y)) | 179 | #define howmany(x, y) (((x)+((y)-1))/(y)) |
181 | 180 | ||
181 | static inline void delay(long ticks) | ||
182 | { | ||
183 | schedule_timeout_uninterruptible(ticks); | ||
184 | } | ||
185 | |||
182 | /* | 186 | /* |
183 | * XFS wrapper structure for sysfs support. It depends on external data | 187 | * XFS wrapper structure for sysfs support. It depends on external data |
184 | * structures and is embedded in various internal data structures to implement | 188 | * structures and is embedded in various internal data structures to implement |
diff --git a/fs/xfs/xfs_trans_inode.c b/fs/xfs/xfs_trans_inode.c index 50c3f5614288..cdb4d86520e1 100644 --- a/fs/xfs/xfs_trans_inode.c +++ b/fs/xfs/xfs_trans_inode.c | |||
@@ -70,7 +70,7 @@ xfs_trans_ichgtime( | |||
70 | int flags) | 70 | int flags) |
71 | { | 71 | { |
72 | struct inode *inode = VFS_I(ip); | 72 | struct inode *inode = VFS_I(ip); |
73 | timespec_t tv; | 73 | struct timespec tv; |
74 | 74 | ||
75 | ASSERT(tp); | 75 | ASSERT(tp); |
76 | ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); | 76 | ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); |