mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[XFS] fix, speedup and simplify atime handling let the VFS handle atime
updates and only sync back to the xfs inode when nessecary SGI-PV: 946679 SGI-Modid: xfs-linux-melb:xfs-kern:203362a Signed-off-by: Christoph Hellwig <hch@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
This commit is contained in:
parent
dd954c69d1
commit
42fe2b1f7f
8 changed files with 49 additions and 54 deletions
|
@ -3364,6 +3364,11 @@ xfs_iflush_int(
|
|||
ip->i_update_core = 0;
|
||||
SYNCHRONIZE();
|
||||
|
||||
/*
|
||||
* Make sure to get the latest atime from the Linux inode.
|
||||
*/
|
||||
xfs_synchronize_atime(ip);
|
||||
|
||||
if (XFS_TEST_ERROR(INT_GET(dip->di_core.di_magic,ARCH_CONVERT) != XFS_DINODE_MAGIC,
|
||||
mp, XFS_ERRTAG_IFLUSH_1, XFS_RANDOM_IFLUSH_1)) {
|
||||
xfs_cmn_err(XFS_PTAG_IFLUSH, CE_ALERT, mp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue