summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_linux.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-10-02 09:18:13 +1000
committerDave Chinner <david@fromorbit.com>2014-10-02 09:18:13 +1000
commite076b0f3a5c472e77c0a0e163188f2761e8b4fed (patch)
tree21f845bf245552bdd3a6e34526faf7e01186ca3d /fs/xfs/xfs_linux.h
parentb1d6cc02f2f6a590c4d8dc2c3bcf7be3b9419945 (diff)
downloadlinux-e076b0f3a5c472e77c0a0e163188f2761e8b4fed.tar.gz
linux-e076b0f3a5c472e77c0a0e163188f2761e8b4fed.tar.bz2
linux-e076b0f3a5c472e77c0a0e163188f2761e8b4fed.zip
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_linux.h')
-rw-r--r--fs/xfs/xfs_linux.h6
1 files changed, 5 insertions, 1 deletions
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;
#include "kmem.h"
#include "mrlock.h"
-#include "time.h"
#include "uuid.h"
#include <linux/semaphore.h>
@@ -179,6 +178,11 @@ typedef __uint64_t __psunsigned_t;
#define MAX(a,b) (max(a,b))
#define howmany(x, y) (((x)+((y)-1))/(y))
+static inline void delay(long ticks)
+{
+ schedule_timeout_uninterruptible(ticks);
+}
+
/*
* XFS wrapper structure for sysfs support. It depends on external data
* structures and is embedded in various internal data structures to implement