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
c217a2a0
Commit
c217a2a0
authored
Apr 21, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch utimes() to fget_light/fput_light
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
0aa2ee5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/utimes.c
fs/utimes.c
+3
-2
No files found.
fs/utimes.c
View file @
c217a2a0
...
...
@@ -140,18 +140,19 @@ long do_utimes(int dfd, const char __user *filename, struct timespec *times,
goto
out
;
if
(
filename
==
NULL
&&
dfd
!=
AT_FDCWD
)
{
int
fput_needed
;
struct
file
*
file
;
if
(
flags
&
AT_SYMLINK_NOFOLLOW
)
goto
out
;
file
=
fget
(
df
d
);
file
=
fget
_light
(
dfd
,
&
fput_neede
d
);
error
=
-
EBADF
;
if
(
!
file
)
goto
out
;
error
=
utimes_common
(
&
file
->
f_path
,
times
);
fput
(
file
);
fput
_light
(
file
,
fput_needed
);
}
else
{
struct
path
path
;
int
lookup_flags
=
0
;
...
...
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