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
nexedi
linux
Commits
cd61c522
Commit
cd61c522
authored
Aug 14, 2014
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd: make lookup/alloc/unhash_stid available outside nfs4state.c
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
9558f250
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+4
-4
fs/nfsd/state.h
fs/nfsd/state.h
+6
-0
No files found.
fs/nfsd/nfs4state.c
View file @
cd61c522
...
...
@@ -476,7 +476,7 @@ static void nfs4_file_put_access(struct nfs4_file *fp, u32 access)
__nfs4_file_put_access
(
fp
,
O_RDONLY
);
}
st
atic
st
ruct
nfs4_stid
*
nfs4_alloc_stid
(
struct
nfs4_client
*
cl
,
struct
nfs4_stid
*
nfs4_alloc_stid
(
struct
nfs4_client
*
cl
,
struct
kmem_cache
*
slab
)
{
struct
nfs4_stid
*
stid
;
...
...
@@ -680,7 +680,7 @@ static void nfs4_put_deleg_lease(struct nfs4_file *fp)
}
}
static
void
unhash_stid
(
struct
nfs4_stid
*
s
)
void
nfs4_
unhash_stid
(
struct
nfs4_stid
*
s
)
{
s
->
sc_type
=
0
;
}
...
...
@@ -988,7 +988,7 @@ static void unhash_lock_stateid(struct nfs4_ol_stateid *stp)
list_del_init
(
&
stp
->
st_locks
);
unhash_ol_stateid
(
stp
);
unhash_stid
(
&
stp
->
st_stid
);
nfs4_
unhash_stid
(
&
stp
->
st_stid
);
}
static
void
release_lock_stateid
(
struct
nfs4_ol_stateid
*
stp
)
...
...
@@ -4433,7 +4433,7 @@ static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid)
return
status
;
}
static
__be32
__be32
nfsd4_lookup_stateid
(
struct
nfsd4_compound_state
*
cstate
,
stateid_t
*
stateid
,
unsigned
char
typemask
,
struct
nfs4_stid
**
s
,
struct
nfsd_net
*
nn
)
...
...
fs/nfsd/state.h
View file @
cd61c522
...
...
@@ -545,6 +545,12 @@ struct nfsd_net;
extern
__be32
nfs4_preprocess_stateid_op
(
struct
net
*
net
,
struct
nfsd4_compound_state
*
cstate
,
stateid_t
*
stateid
,
int
flags
,
struct
file
**
filp
);
__be32
nfsd4_lookup_stateid
(
struct
nfsd4_compound_state
*
cstate
,
stateid_t
*
stateid
,
unsigned
char
typemask
,
struct
nfs4_stid
**
s
,
struct
nfsd_net
*
nn
);
struct
nfs4_stid
*
nfs4_alloc_stid
(
struct
nfs4_client
*
cl
,
struct
kmem_cache
*
slab
);
void
nfs4_unhash_stid
(
struct
nfs4_stid
*
s
);
void
nfs4_put_stid
(
struct
nfs4_stid
*
s
);
void
nfs4_remove_reclaim_record
(
struct
nfs4_client_reclaim
*
,
struct
nfsd_net
*
);
extern
void
nfs4_release_reclaim
(
struct
nfsd_net
*
);
...
...
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