mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
[PATCH] replace inode_update_time with file_update_time
To allow various options to work per-mount instead of per-sb we need a struct vfsmount when updating ctime and mtime. This preparation patch replaces the inode_update_time routine with a file_update_atime routine so we can easily get at the vfsmount. (and the file makes more sense in this context anyway). Also get rid of the unused second argument - we always want to update the ctime when calling this routine. Signed-off-by: Christoph Hellwig <[email protected]> Cc: Al Viro <[email protected]> Cc: Anton Altaparmakov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3542c6e18f
commit
870f481793
11 changed files with 44 additions and 27 deletions
|
|
@ -262,7 +262,7 @@ ncp_file_write(struct file *file, const char __user *buf, size_t count, loff_t *
|
|||
}
|
||||
vfree(bouncebuffer);
|
||||
|
||||
inode_update_time(inode, 1);
|
||||
file_update_time(file);
|
||||
|
||||
*ppos = pos;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue