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
76befc0e
Commit
76befc0e
authored
Feb 07, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Feb 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] knfsd cleanups
logics in exp_get() cleaned up (it's kernel, not IOCCC, damnit...)
parent
a3d96251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
fs/nfsd/export.c
fs/nfsd/export.c
+4
-8
No files found.
fs/nfsd/export.c
View file @
76befc0e
...
...
@@ -76,14 +76,10 @@ exp_get(svc_client *clp, kdev_t dev, ino_t ino)
if
(
!
clp
)
return
NULL
;
exp
=
clp
->
cl_export
[
EXPORT_HASH
(
dev
)];
if
(
exp
)
do
{
if
(
exp
->
ex_ino
==
ino
&&
kdev_same
(
exp
->
ex_dev
,
dev
))
goto
out
;
}
while
(
NULL
!=
(
exp
=
exp
->
ex_next
));
exp
=
NULL
;
out:
for
(
exp
=
clp
->
cl_export
[
EXPORT_HASH
(
dev
)];
exp
;
exp
=
exp
->
ex_next
)
{
if
(
exp
->
ex_ino
==
ino
&&
kdev_same
(
exp
->
ex_dev
,
dev
))
break
;
}
return
exp
;
}
...
...
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