diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-15 14:47:33 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-04 14:43:38 -0500 |
commit | eba24e1fe57df4e4cdee58af940f762eb336a113 (patch) | |
tree | d3dd5c80d725119b8610db799d8e3ac33b264480 | |
parent | d3edcf96141a7729b12ef5ecab6d5f634e24c61a (diff) |
NFSv4.1: Remove unused function last_byte_offset
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | fs/nfs/objlayout/objlayout.c | 11 | ||||
-rw-r--r-- | fs/nfs/pnfs.c | 11 |
2 files changed, 0 insertions, 22 deletions
diff --git a/fs/nfs/objlayout/objlayout.c b/fs/nfs/objlayout/objlayout.c index 874613545301..a9ebd817278b 100644 --- a/fs/nfs/objlayout/objlayout.c +++ b/fs/nfs/objlayout/objlayout.c | |||
@@ -148,17 +148,6 @@ end_offset(u64 start, u64 len) | |||
148 | return end >= start ? end : NFS4_MAX_UINT64; | 148 | return end >= start ? end : NFS4_MAX_UINT64; |
149 | } | 149 | } |
150 | 150 | ||
151 | /* last octet in a range */ | ||
152 | static inline u64 | ||
153 | last_byte_offset(u64 start, u64 len) | ||
154 | { | ||
155 | u64 end; | ||
156 | |||
157 | BUG_ON(!len); | ||
158 | end = start + len; | ||
159 | return end > start ? end - 1 : NFS4_MAX_UINT64; | ||
160 | } | ||
161 | |||
162 | static void _fix_verify_io_params(struct pnfs_layout_segment *lseg, | 151 | static void _fix_verify_io_params(struct pnfs_layout_segment *lseg, |
163 | struct page ***p_pages, unsigned *p_pgbase, | 152 | struct page ***p_pages, unsigned *p_pgbase, |
164 | u64 offset, unsigned long count) | 153 | u64 offset, unsigned long count) |
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 2878f97bd78d..dcbc9b20474b 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -369,17 +369,6 @@ end_offset(u64 start, u64 len) | |||
369 | return end >= start ? end : NFS4_MAX_UINT64; | 369 | return end >= start ? end : NFS4_MAX_UINT64; |
370 | } | 370 | } |
371 | 371 | ||
372 | /* last octet in a range */ | ||
373 | static inline u64 | ||
374 | last_byte_offset(u64 start, u64 len) | ||
375 | { | ||
376 | u64 end; | ||
377 | |||
378 | BUG_ON(!len); | ||
379 | end = start + len; | ||
380 | return end > start ? end - 1 : NFS4_MAX_UINT64; | ||
381 | } | ||
382 | |||
383 | /* | 372 | /* |
384 | * is l2 fully contained in l1? | 373 | * is l2 fully contained in l1? |
385 | * start1 end1 | 374 | * start1 end1 |