mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
xfs: reinstate the old i_version counter as STATX_CHANGE_COOKIE
The handling of STATX_CHANGE_COOKIE was moved into generic_fillattr in commit0d72b92883
(fs: pass the request_mask to generic_fillattr), but we didn't account for the fact that xfs doesn't call generic_fillattr at all. Make XFS report its i_version as the STATX_CHANGE_COOKIE. Fixes:0d72b92883
(fs: pass the request_mask to generic_fillattr) Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
This commit is contained in:
parent
f93b930030
commit
cbc06310c3
1 changed files with 5 additions and 0 deletions
|
@ -584,6 +584,11 @@ xfs_vn_getattr(
|
|||
}
|
||||
}
|
||||
|
||||
if ((request_mask & STATX_CHANGE_COOKIE) && IS_I_VERSION(inode)) {
|
||||
stat->change_cookie = inode_query_iversion(inode);
|
||||
stat->result_mask |= STATX_CHANGE_COOKIE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Note: If you add another clause to set an attribute flag, please
|
||||
* update attributes_mask below.
|
||||
|
|
Loading…
Add table
Reference in a new issue