Re: [PATCH 2/2] xfs: don't update mtime on COW faults
From: Christoph Hellwig
Date: Mon Sep 07 2020 - 02:48:03 EST
> +static bool
> +xfs_is_write_fault(
> + struct vm_fault *vmf)
> +{
> + return vmf->flags & FAULT_FLAG_WRITE && vmf->vma->vm_flags & VM_SHARED;
> +}
This function does not look xfs specific at all. Why isn't it it in
fs.h? While we're at it the name sounds rather generic, and there are
no good comments.
Maybe we just need to split FAULT_FLAG_WRITE into two and check those
instead of such crazy workarounds?