提交 401898ee 编写于 作者: A Arnd Bergmann 提交者: Mike Marshall

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: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NMike Marshall <hubcap@omnibond.com>
上级 be81ce48
...@@ -662,15 +662,4 @@ static inline void orangefs_i_size_write(struct inode *inode, loff_t i_size) ...@@ -662,15 +662,4 @@ static inline void orangefs_i_size_write(struct inode *inode, loff_t i_size)
#endif #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 */ #endif /* __ORANGEFSKERNEL_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册