mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
switch touch_atime to struct path
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
40ffe67d2e
commit
68ac1234fb
8 changed files with 21 additions and 19 deletions
|
@ -1499,9 +1499,10 @@ static int relatime_need_update(struct vfsmount *mnt, struct inode *inode,
|
|||
* 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 vfsmount *mnt, struct dentry *dentry)
|
||||
void touch_atime(struct path *path)
|
||||
{
|
||||
struct inode *inode = dentry->d_inode;
|
||||
struct vfsmount *mnt = path->mnt;
|
||||
struct inode *inode = path->dentry->d_inode;
|
||||
struct timespec now;
|
||||
|
||||
if (inode->i_flags & S_NOATIME)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue