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
386b1f74
Commit
386b1f74
authored
Jun 17, 2002
by
Andrew Morton
Committed by
Linus Torvalds
Jun 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] update_atime cleanup
Remove unneeded do_update_atime(), and convert update_atime() to C.
parent
afb51f81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
+10
-16
fs/inode.c
fs/inode.c
+10
-16
No files found.
fs/inode.c
View file @
386b1f74
...
@@ -913,16 +913,6 @@ int bmap(struct inode * inode, int block)
...
@@ -913,16 +913,6 @@ int bmap(struct inode * inode, int block)
return
res
;
return
res
;
}
}
static
inline
void
do_atime_update
(
struct
inode
*
inode
)
{
unsigned
long
time
=
CURRENT_TIME
;
if
(
inode
->
i_atime
!=
time
)
{
inode
->
i_atime
=
time
;
mark_inode_dirty_sync
(
inode
);
}
}
/**
/**
* update_atime - update the access time
* update_atime - update the access time
* @inode: inode accessed
* @inode: inode accessed
...
@@ -932,15 +922,19 @@ static inline void do_atime_update(struct inode *inode)
...
@@ -932,15 +922,19 @@ static inline void do_atime_update(struct inode *inode)
* as well as the "noatime" flag and inode specific "noatime" markers.
* as well as the "noatime" flag and inode specific "noatime" markers.
*/
*/
void
update_atime
(
struct
inode
*
inode
)
void
update_atime
(
struct
inode
*
inode
)
{
{
if
(
inode
->
i_atime
==
CURRENT_TIME
)
if
(
inode
->
i_atime
==
CURRENT_TIME
)
return
;
return
;
if
(
IS_NOATIME
(
inode
)
)
return
;
if
(
IS_NOATIME
(
inode
))
if
(
IS_NODIRATIME
(
inode
)
&&
S_ISDIR
(
inode
->
i_mode
)
)
return
;
return
;
if
(
IS_RDONLY
(
inode
)
)
return
;
if
(
IS_NODIRATIME
(
inode
)
&&
S_ISDIR
(
inode
->
i_mode
))
do_atime_update
(
inode
);
return
;
}
/* End Function update_atime */
if
(
IS_RDONLY
(
inode
))
return
;
inode
->
i_atime
=
CURRENT_TIME
;
mark_inode_dirty_sync
(
inode
);
}
int
inode_needs_sync
(
struct
inode
*
inode
)
int
inode_needs_sync
(
struct
inode
*
inode
)
{
{
...
...
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