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
eaffe965
Commit
eaffe965
authored
Jan 04, 2005
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VFS: Remove LOCK_USE_CLNT. It should no longer be necessary.
Signed-off-by:
Trond Myklebust
<
trond.myklebust@fys.uio.no
>
parent
842134f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
11 deletions
+0
-11
fs/locks.c
fs/locks.c
+0
-6
include/linux/fs.h
include/linux/fs.h
+0
-5
No files found.
fs/locks.c
View file @
eaffe965
...
...
@@ -1563,9 +1563,6 @@ int fcntl_getlk(struct file *filp, struct flock __user *l)
error
=
filp
->
f_op
->
lock
(
filp
,
F_GETLK
,
&
file_lock
);
if
(
error
<
0
)
goto
out
;
else
if
(
error
==
LOCK_USE_CLNT
)
/* Bypass for NFS with no locking - 2.0.36 compat */
fl
=
posix_test_lock
(
filp
,
&
file_lock
);
else
fl
=
(
file_lock
.
fl_type
==
F_UNLCK
?
NULL
:
&
file_lock
);
}
else
{
...
...
@@ -1708,9 +1705,6 @@ int fcntl_getlk64(struct file *filp, struct flock64 __user *l)
error
=
filp
->
f_op
->
lock
(
filp
,
F_GETLK
,
&
file_lock
);
if
(
error
<
0
)
goto
out
;
else
if
(
error
==
LOCK_USE_CLNT
)
/* Bypass for NFS with no locking - 2.0.36 compat */
fl
=
posix_test_lock
(
filp
,
&
file_lock
);
else
fl
=
(
file_lock
.
fl_type
==
F_UNLCK
?
NULL
:
&
file_lock
);
}
else
{
...
...
include/linux/fs.h
View file @
eaffe965
...
...
@@ -1189,11 +1189,6 @@ extern long do_mount(char *, char *, char *, unsigned long, void *);
extern
int
vfs_statfs
(
struct
super_block
*
,
struct
kstatfs
*
);
/* Return value for VFS lock functions - tells locks.c to lock conventionally
* REALLY kosha for root NFS and nfs_lock
*/
#define LOCK_USE_CLNT 1
#define FLOCK_VERIFY_READ 1
#define FLOCK_VERIFY_WRITE 2
...
...
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