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
f35ea0d4
Commit
f35ea0d4
authored
May 22, 2014
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.15 bugfixes for 3.16
parents
cbf7a75b
27b11428
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
fs/nfsd/nfs4acl.c
fs/nfsd/nfs4acl.c
+1
-1
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+13
-2
No files found.
fs/nfsd/nfs4acl.c
View file @
f35ea0d4
...
...
@@ -589,7 +589,7 @@ posix_state_to_acl(struct posix_acl_state *state, unsigned int flags)
add_to_mask
(
state
,
&
state
->
groups
->
aces
[
i
].
perms
);
}
if
(
!
state
->
users
->
n
&&
!
state
->
groups
->
n
)
{
if
(
state
->
users
->
n
||
state
->
groups
->
n
)
{
pace
++
;
pace
->
e_tag
=
ACL_MASK
;
low_mode_from_nfs4
(
state
->
mask
.
allow
,
&
pace
->
e_perm
,
flags
);
...
...
fs/nfsd/nfs4state.c
View file @
f35ea0d4
...
...
@@ -3716,9 +3716,16 @@ nfs4_preprocess_stateid_op(struct net *net, struct nfsd4_compound_state *cstate,
static
__be32
nfsd4_free_lock_stateid
(
struct
nfs4_ol_stateid
*
stp
)
{
if
(
check_for_locks
(
stp
->
st_file
,
lockowner
(
stp
->
st_stateowner
)))
struct
nfs4_lockowner
*
lo
=
lockowner
(
stp
->
st_stateowner
);
if
(
check_for_locks
(
stp
->
st_file
,
lo
))
return
nfserr_locks_held
;
release_lock_stateid
(
stp
);
/*
* Currently there's a 1-1 lock stateid<->lockowner
* correspondance, and we have to delete the lockowner when we
* delete the lock stateid:
*/
unhash_lockowner
(
lo
);
return
nfs_ok
;
}
...
...
@@ -4158,6 +4165,10 @@ static bool same_lockowner_ino(struct nfs4_lockowner *lo, struct inode *inode, c
if
(
!
same_owner_str
(
&
lo
->
lo_owner
,
owner
,
clid
))
return
false
;
if
(
list_empty
(
&
lo
->
lo_owner
.
so_stateids
))
{
WARN_ON_ONCE
(
1
);
return
false
;
}
lst
=
list_first_entry
(
&
lo
->
lo_owner
.
so_stateids
,
struct
nfs4_ol_stateid
,
st_perstateowner
);
return
lst
->
st_file
->
fi_inode
==
inode
;
...
...
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