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
8cb0d2c1
Commit
8cb0d2c1
authored
Apr 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernfs: no point locking directory around that generic_file_llseek()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a01b3007
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
fs/kernfs/dir.c
fs/kernfs/dir.c
+2
-15
No files found.
fs/kernfs/dir.c
View file @
8cb0d2c1
...
...
@@ -1643,22 +1643,9 @@ static int kernfs_fop_readdir(struct file *file, struct dir_context *ctx)
return
0
;
}
static
loff_t
kernfs_dir_fop_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
whence
)
{
struct
inode
*
inode
=
file_inode
(
file
);
loff_t
ret
;
inode_lock
(
inode
);
ret
=
generic_file_llseek
(
file
,
offset
,
whence
);
inode_unlock
(
inode
);
return
ret
;
}
const
struct
file_operations
kernfs_dir_fops
=
{
.
read
=
generic_read_dir
,
.
iterate
=
kernfs_fop_readdir
,
.
iterate
_shared
=
kernfs_fop_readdir
,
.
release
=
kernfs_dir_fop_release
,
.
llseek
=
kernfs_dir_fop
_llseek
,
.
llseek
=
generic_file
_llseek
,
};
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