Skip to content

Commit

Permalink
Revert "xfs: add pre-content fsnotify hook for DAX faults"
Browse files Browse the repository at this point in the history
This reverts commit 7f4796a.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20250312073852.2123409-4-amir73il@gmail.com
  • Loading branch information
Amir Goldstein authored and Jan Kara committed Mar 13, 2025
1 parent bc71aab commit 27773ce
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions fs/xfs/xfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,9 +1451,6 @@ xfs_dax_read_fault(

trace_xfs_read_fault(ip, order);

ret = filemap_fsnotify_fault(vmf);
if (unlikely(ret))
return ret;
xfs_ilock(ip, XFS_MMAPLOCK_SHARED);
ret = xfs_dax_fault_locked(vmf, order, false);
xfs_iunlock(ip, XFS_MMAPLOCK_SHARED);
Expand Down Expand Up @@ -1482,16 +1479,6 @@ xfs_write_fault(
vm_fault_t ret;

trace_xfs_write_fault(ip, order);
/*
* Usually we get here from ->page_mkwrite callback but in case of DAX
* we will get here also for ordinary write fault. Handle HSM
* notifications for that case.
*/
if (IS_DAX(inode)) {
ret = filemap_fsnotify_fault(vmf);
if (unlikely(ret))
return ret;
}

sb_start_pagefault(inode->i_sb);
file_update_time(vmf->vma->vm_file);
Expand Down

0 comments on commit 27773ce

Please sign in to comment.