Re: [PATCH v5 4/9] fs: have setattr_copy handle multigrain timestamps appropriately

2024-07-11 Thread Darrick J. Wong
On Thu, Jul 11, 2024 at 07:08:08AM -0400, Jeff Layton wrote: > The setattr codepath is still using coarse-grained timestamps, even on > multigrain filesystems. To fix this, we need to fetch the timestamp for > ctime updates later, at the point where the assignment occurs in > setattr_copy. > > On

[PATCH v5 4/9] fs: have setattr_copy handle multigrain timestamps appropriately

2024-07-11 Thread Jeff Layton
The setattr codepath is still using coarse-grained timestamps, even on multigrain filesystems. To fix this, we need to fetch the timestamp for ctime updates later, at the point where the assignment occurs in setattr_copy. On a multigrain inode, ignore the ia_ctime in the attrs, and always update t