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
Kirill Smelkov
linux
Commits
6bdf2954
Commit
6bdf2954
authored
Aug 26, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch EXT4_IOC_MOVE_EXT to fget_light()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4557c669
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/ext4/ioctl.c
fs/ext4/ioctl.c
+3
-3
No files found.
fs/ext4/ioctl.c
View file @
6bdf2954
...
...
@@ -234,7 +234,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
case
EXT4_IOC_MOVE_EXT
:
{
struct
move_extent
me
;
struct
file
*
donor_filp
;
int
err
;
int
err
,
fput_needed
;
if
(
!
(
filp
->
f_mode
&
FMODE_READ
)
||
!
(
filp
->
f_mode
&
FMODE_WRITE
))
...
...
@@ -245,7 +245,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
return
-
EFAULT
;
me
.
moved_len
=
0
;
donor_filp
=
fget
(
me
.
donor_f
d
);
donor_filp
=
fget
_light
(
me
.
donor_fd
,
&
fput_neede
d
);
if
(
!
donor_filp
)
return
-
EBADF
;
...
...
@@ -274,7 +274,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
&
me
,
sizeof
(
me
)))
err
=
-
EFAULT
;
mext_out:
fput
(
donor_filp
);
fput
_light
(
donor_filp
,
fput_needed
);
return
err
;
}
...
...
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