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
bd7bf9d5
Commit
bd7bf9d5
authored
Dec 23, 2008
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv4: Convert delegation->type field to fmode_t
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
9082a5cc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
fs/nfs/delegation.c
fs/nfs/delegation.c
+1
-1
fs/nfs/delegation.h
fs/nfs/delegation.h
+3
-3
fs/nfs/nfs4xdr.c
fs/nfs/nfs4xdr.c
+2
-2
include/linux/nfs_fs.h
include/linux/nfs_fs.h
+1
-1
include/linux/nfs_xdr.h
include/linux/nfs_xdr.h
+2
-2
No files found.
fs/nfs/delegation.c
View file @
bd7bf9d5
...
...
@@ -48,7 +48,7 @@ void nfs_mark_delegation_referenced(struct nfs_delegation *delegation)
set_bit
(
NFS_DELEGATION_REFERENCED
,
&
delegation
->
flags
);
}
int
nfs_have_delegation
(
struct
inode
*
inode
,
in
t
flags
)
int
nfs_have_delegation
(
struct
inode
*
inode
,
fmode_
t
flags
)
{
struct
nfs_delegation
*
delegation
;
int
ret
=
0
;
...
...
fs/nfs/delegation.h
View file @
bd7bf9d5
...
...
@@ -17,7 +17,7 @@ struct nfs_delegation {
struct
rpc_cred
*
cred
;
struct
inode
*
inode
;
nfs4_stateid
stateid
;
in
t
type
;
fmode_
t
type
;
loff_t
maxsize
;
__u64
change_attr
;
unsigned
long
flags
;
...
...
@@ -54,10 +54,10 @@ int nfs4_lock_delegation_recall(struct nfs4_state *state, struct file_lock *fl);
int
nfs4_copy_delegation_stateid
(
nfs4_stateid
*
dst
,
struct
inode
*
inode
);
void
nfs_mark_delegation_referenced
(
struct
nfs_delegation
*
delegation
);
int
nfs_have_delegation
(
struct
inode
*
inode
,
in
t
flags
);
int
nfs_have_delegation
(
struct
inode
*
inode
,
fmode_
t
flags
);
#else
static
inline
int
nfs_have_delegation
(
struct
inode
*
inode
,
in
t
flags
)
static
inline
int
nfs_have_delegation
(
struct
inode
*
inode
,
fmode_
t
flags
)
{
return
0
;
}
...
...
fs/nfs/nfs4xdr.c
View file @
bd7bf9d5
...
...
@@ -1024,7 +1024,7 @@ static void encode_opentype(struct xdr_stream *xdr, const struct nfs_openargs *a
}
}
static
inline
void
encode_delegation_type
(
struct
xdr_stream
*
xdr
,
in
t
delegation_type
)
static
inline
void
encode_delegation_type
(
struct
xdr_stream
*
xdr
,
fmode_
t
delegation_type
)
{
__be32
*
p
;
...
...
@@ -1053,7 +1053,7 @@ static inline void encode_claim_null(struct xdr_stream *xdr, const struct qstr *
encode_string
(
xdr
,
name
->
len
,
name
->
name
);
}
static
inline
void
encode_claim_previous
(
struct
xdr_stream
*
xdr
,
in
t
type
)
static
inline
void
encode_claim_previous
(
struct
xdr_stream
*
xdr
,
fmode_
t
type
)
{
__be32
*
p
;
...
...
include/linux/nfs_fs.h
View file @
bd7bf9d5
...
...
@@ -180,7 +180,7 @@ struct nfs_inode {
/* NFSv4 state */
struct
list_head
open_states
;
struct
nfs_delegation
*
delegation
;
in
t
delegation_state
;
fmode_
t
delegation_state
;
struct
rw_semaphore
rwsem
;
#endif
/* CONFIG_NFS_V4*/
struct
inode
vfs_inode
;
...
...
include/linux/nfs_xdr.h
View file @
bd7bf9d5
...
...
@@ -126,7 +126,7 @@ struct nfs_openargs {
struct
iattr
*
attrs
;
/* UNCHECKED, GUARDED */
nfs4_verifier
verifier
;
/* EXCLUSIVE */
nfs4_stateid
delegation
;
/* CLAIM_DELEGATE_CUR */
in
t
delegation_type
;
/* CLAIM_PREVIOUS */
fmode_
t
delegation_type
;
/* CLAIM_PREVIOUS */
}
u
;
const
struct
qstr
*
name
;
const
struct
nfs_server
*
server
;
/* Needed for ID mapping */
...
...
@@ -143,7 +143,7 @@ struct nfs_openres {
struct
nfs_fattr
*
dir_attr
;
struct
nfs_seqid
*
seqid
;
const
struct
nfs_server
*
server
;
in
t
delegation_type
;
fmode_
t
delegation_type
;
nfs4_stateid
delegation
;
__u32
do_recall
;
__u64
maxsize
;
...
...
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