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
e6ba76e1
Commit
e6ba76e1
authored
Aug 14, 2014
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd: make find/get/put file available outside nfs4state.c
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
cd61c522
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+2
-8
fs/nfsd/state.h
fs/nfsd/state.h
+7
-0
No files found.
fs/nfsd/nfs4state.c
View file @
e6ba76e1
...
...
@@ -272,7 +272,7 @@ static void nfsd4_free_file_rcu(struct rcu_head *rcu)
kmem_cache_free
(
file_slab
,
fp
);
}
static
inline
void
void
put_nfs4_file
(
struct
nfs4_file
*
fi
)
{
might_lock
(
&
state_lock
);
...
...
@@ -285,12 +285,6 @@ put_nfs4_file(struct nfs4_file *fi)
}
}
static
inline
void
get_nfs4_file
(
struct
nfs4_file
*
fi
)
{
atomic_inc
(
&
fi
->
fi_ref
);
}
static
struct
file
*
__nfs4_get_fd
(
struct
nfs4_file
*
f
,
int
oflag
)
{
...
...
@@ -3295,7 +3289,7 @@ find_file_locked(struct knfsd_fh *fh, unsigned int hashval)
return
NULL
;
}
st
atic
st
ruct
nfs4_file
*
struct
nfs4_file
*
find_file
(
struct
knfsd_fh
*
fh
)
{
struct
nfs4_file
*
fp
;
...
...
fs/nfsd/state.h
View file @
e6ba76e1
...
...
@@ -573,6 +573,13 @@ extern struct nfs4_client_reclaim *nfs4_client_to_reclaim(const char *name,
struct
nfsd_net
*
nn
);
extern
bool
nfs4_has_reclaimed_state
(
const
char
*
name
,
struct
nfsd_net
*
nn
);
struct
nfs4_file
*
find_file
(
struct
knfsd_fh
*
fh
);
void
put_nfs4_file
(
struct
nfs4_file
*
fi
);
static
inline
void
get_nfs4_file
(
struct
nfs4_file
*
fi
)
{
atomic_inc
(
&
fi
->
fi_ref
);
}
/* grace period management */
void
nfsd4_end_grace
(
struct
nfsd_net
*
nn
);
...
...
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