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
badcf2b7
Commit
badcf2b7
authored
Jul 16, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify touch_atime()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
8033426e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fs/inode.c
fs/inode.c
+1
-1
include/linux/fs.h
include/linux/fs.h
+1
-1
No files found.
fs/inode.c
View file @
badcf2b7
...
...
@@ -1525,7 +1525,7 @@ static int update_time(struct inode *inode, struct timespec *time, int flags)
* This function automatically handles read only file systems and media,
* as well as the "noatime" flag and inode specific "noatime" markers.
*/
void
touch_atime
(
struct
path
*
path
)
void
touch_atime
(
const
struct
path
*
path
)
{
struct
vfsmount
*
mnt
=
path
->
mnt
;
struct
inode
*
inode
=
path
->
dentry
->
d_inode
;
...
...
include/linux/fs.h
View file @
badcf2b7
...
...
@@ -1804,7 +1804,7 @@ enum file_time_flags {
S_VERSION
=
8
,
};
extern
void
touch_atime
(
struct
path
*
);
extern
void
touch_atime
(
const
struct
path
*
);
static
inline
void
file_accessed
(
struct
file
*
file
)
{
if
(
!
(
file
->
f_flags
&
O_NOATIME
))
...
...
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