summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-02-26 12:54:09 (GMT)
committerMike Marshall <hubcap@omnibond.com>2016-02-26 15:18:43 (GMT)
commit401898eed7e05b8a898a44b49d5e9a510aebee83 (patch)
tree120292389e249b8cc3d94aa6c43c348faa3db5e9
parentbe81ce48b262e2164d64a1354c618571b0c9cd09 (diff)
downloadlinux-401898eed7e05b8a898a44b49d5e9a510aebee83.tar.xz
orangefs: remove unused 'diff' function
orangefs contains a helper function to calculate the difference between two timeval structures. We are trying to remove all instances of timespec from the kernel, and this one is not used at all, so let's remove it now. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
-rw-r--r--fs/orangefs/orangefs-kernel.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h
index b6f52e3..c045c0b 100644
--- a/fs/orangefs/orangefs-kernel.h
+++ b/fs/orangefs/orangefs-kernel.h
@@ -662,15 +662,4 @@ static inline void orangefs_i_size_write(struct inode *inode, loff_t i_size)
#endif
}
-static inline unsigned int diff(struct timeval *end, struct timeval *begin)
-{
- if (end->tv_usec < begin->tv_usec) {
- end->tv_usec += 1000000;
- end->tv_sec--;
- }
- end->tv_sec -= begin->tv_sec;
- end->tv_usec -= begin->tv_usec;
- return (end->tv_sec * 1000000) + end->tv_usec;
-}
-
#endif /* __ORANGEFSKERNEL_H */