Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
eba24e1f
Commit
eba24e1f
authored
Oct 15, 2012
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv4.1: Remove unused function last_byte_offset
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
d3edcf96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
fs/nfs/objlayout/objlayout.c
fs/nfs/objlayout/objlayout.c
+0
-11
fs/nfs/pnfs.c
fs/nfs/pnfs.c
+0
-11
No files found.
fs/nfs/objlayout/objlayout.c
View file @
eba24e1f
...
...
@@ -148,17 +148,6 @@ end_offset(u64 start, u64 len)
return
end
>=
start
?
end
:
NFS4_MAX_UINT64
;
}
/* last octet in a range */
static
inline
u64
last_byte_offset
(
u64
start
,
u64
len
)
{
u64
end
;
BUG_ON
(
!
len
);
end
=
start
+
len
;
return
end
>
start
?
end
-
1
:
NFS4_MAX_UINT64
;
}
static
void
_fix_verify_io_params
(
struct
pnfs_layout_segment
*
lseg
,
struct
page
***
p_pages
,
unsigned
*
p_pgbase
,
u64
offset
,
unsigned
long
count
)
...
...
fs/nfs/pnfs.c
View file @
eba24e1f
...
...
@@ -369,17 +369,6 @@ end_offset(u64 start, u64 len)
return
end
>=
start
?
end
:
NFS4_MAX_UINT64
;
}
/* last octet in a range */
static
inline
u64
last_byte_offset
(
u64
start
,
u64
len
)
{
u64
end
;
BUG_ON
(
!
len
);
end
=
start
+
len
;
return
end
>
start
?
end
-
1
:
NFS4_MAX_UINT64
;
}
/*
* is l2 fully contained in l1?
* start1 end1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment