orangefs: remove unused 'diff' function
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Feb 2016 12:54:09 +0000 (13:54 +0100)
committerMike Marshall <hubcap@omnibond.com>
Fri, 26 Feb 2016 15:18:43 +0000 (10:18 -0500)
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>
fs/orangefs/orangefs-kernel.h

index b6f52e3fee7fb6ba2daba10f3c8c2c412dbe4de6..c045c0b8950759f19edef3f0a7dd7a4eee88e550 100644 (file)
@@ -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 */