diff options
author | NeilBrown <neilb@suse.com> | 2018-03-29 15:26:48 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-23 14:52:52 +0200 |
commit | b49946b2e49068efbc4a53f4ffca4fc9e6d07fe0 (patch) | |
tree | ad4169fcb368a3aac098fedb8c0aff1f381cbbda /drivers/staging/lustre/include | |
parent | e990f1c6eccd6389c3ce321d8bf05cdb0747b761 (diff) | |
download | op-kernel-dev-b49946b2e49068efbc4a53f4ffca4fc9e6d07fe0.zip op-kernel-dev-b49946b2e49068efbc4a53f4ffca4fc9e6d07fe0.tar.gz |
staging: lustre: libcfs: discard cfs_time_after()
cfs_time_after() behaves exactly like time_after()
similarly cfs_time_aftereq() matches time_after_eq()
so discard the cfs versions.
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/include')
-rw-r--r-- | drivers/staging/lustre/include/linux/libcfs/libcfs_time.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_time.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_time.h index 0ebbde4..172a887 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs_time.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_time.h @@ -37,20 +37,6 @@ #ifndef __LIBCFS_TIME_H__ #define __LIBCFS_TIME_H__ /* - * generic time manipulation functions. - */ - -static inline int cfs_time_after(unsigned long t1, unsigned long t2) -{ - return time_before(t2, t1); -} - -static inline int cfs_time_aftereq(unsigned long t1, unsigned long t2) -{ - return time_before_eq(t2, t1); -} - -/* * return valid time-out based on user supplied one. Currently we only check * that time-out is not shorted than allowed. */ |