Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
b31ead6b
Commit
b31ead6b
authored
Sep 11, 2009
by
Alexey Dobriyan
Committed by
James Toy
Sep 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by:
Andrew Morton
<
akpm@linux-foundation.org
>
parent
4c6e3905
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
fs/lockd/svclock.c
fs/lockd/svclock.c
+1
-1
fs/locks.c
fs/locks.c
+1
-1
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+2
-2
include/linux/fs.h
include/linux/fs.h
+1
-1
include/linux/lockd/lockd.h
include/linux/lockd/lockd.h
+1
-1
No files found.
fs/lockd/svclock.c
View file @
b31ead6b
...
...
@@ -705,7 +705,7 @@ static int nlmsvc_same_owner(struct file_lock *fl1, struct file_lock *fl2)
return
fl1
->
fl_owner
==
fl2
->
fl_owner
&&
fl1
->
fl_pid
==
fl2
->
fl_pid
;
}
struct
lock_manager_operations
nlmsvc_lock_operations
=
{
const
struct
lock_manager_operations
nlmsvc_lock_operations
=
{
.
fl_compare_owner
=
nlmsvc_same_owner
,
.
fl_notify
=
nlmsvc_notify_blocked
,
.
fl_grant
=
nlmsvc_grant_deferred
,
...
...
fs/locks.c
View file @
b31ead6b
...
...
@@ -434,7 +434,7 @@ static int lease_mylease_callback(struct file_lock *fl, struct file_lock *try)
return
fl
->
fl_file
==
try
->
fl_file
;
}
static
struct
lock_manager_operations
lease_manager_ops
=
{
static
const
struct
lock_manager_operations
lease_manager_ops
=
{
.
fl_break
=
lease_break_callback
,
.
fl_release_private
=
lease_release_private_callback
,
.
fl_mylease
=
lease_mylease_callback
,
...
...
fs/nfsd/nfs4state.c
View file @
b31ead6b
...
...
@@ -2095,7 +2095,7 @@ int nfsd_change_deleg_cb(struct file_lock **onlist, int arg)
return
-
EAGAIN
;
}
static
struct
lock_manager_operations
nfsd_lease_mng_ops
=
{
static
const
struct
lock_manager_operations
nfsd_lease_mng_ops
=
{
.
fl_break
=
nfsd_break_deleg_cb
,
.
fl_release_private
=
nfsd_release_deleg_cb
,
.
fl_copy_lock
=
nfsd_copy_lock_deleg_cb
,
...
...
@@ -3300,7 +3300,7 @@ nfs4_transform_lock_offset(struct file_lock *lock)
/* Hack!: For now, we're defining this just so we can use a pointer to it
* as a unique cookie to identify our (NFSv4's) posix locks. */
static
struct
lock_manager_operations
nfsd_posix_mng_ops
=
{
static
const
struct
lock_manager_operations
nfsd_posix_mng_ops
=
{
};
static
inline
void
...
...
include/linux/fs.h
View file @
b31ead6b
...
...
@@ -1069,7 +1069,7 @@ struct file_lock {
unsigned
long
fl_break_time
;
/* for nonblocking lease breaks */
const
struct
file_lock_operations
*
fl_ops
;
/* Callbacks for filesystems */
struct
lock_manager_operations
*
fl_lmops
;
/* Callbacks for lockmanagers */
const
struct
lock_manager_operations
*
fl_lmops
;
/* Callbacks for lockmanagers */
union
{
struct
nfs_lock_info
nfs_fl
;
struct
nfs4_lock_info
nfs4_fl
;
...
...
include/linux/lockd/lockd.h
View file @
b31ead6b
...
...
@@ -352,7 +352,7 @@ static inline int nlm_compare_locks(const struct file_lock *fl1,
&&
(
fl1
->
fl_type
==
fl2
->
fl_type
||
fl2
->
fl_type
==
F_UNLCK
);
}
extern
struct
lock_manager_operations
nlmsvc_lock_operations
;
extern
const
struct
lock_manager_operations
nlmsvc_lock_operations
;
#endif
/* __KERNEL__ */
...
...
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