• Linus Torvalds's avatar
    Merge tag 'xfs-4.20-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · c2aa1a44
    Linus Torvalds authored
    Pull vfs dedup fixes from Dave Chinner:
     "This reworks the vfs data cloning infrastructure.
    
      We discovered many issues with these interfaces late in the 4.19 cycle
      - the worst of them (data corruption, setuid stripping) were fixed for
      XFS in 4.19-rc8, but a larger rework of the infrastructure fixing all
      the problems was needed. That rework is the contents of this pull
      request.
    
      Rework the vfs_clone_file_range and vfs_dedupe_file_range
      infrastructure to use a common .remap_file_range method and supply
      generic bounds and sanity checking functions that are shared with the
      data write path. The current VFS infrastructure has problems with
      rlimit, LFS file sizes, file time stamps, maximum filesystem file
      sizes, stripping setuid bits, etc and so they are addressed in these
      commits.
    
      We also introduce the ability for the ->remap_file_range methods to
      return short clones so that clones for vfs_copy_file_range() don't get
      rejected if the entire range can't be cloned. It also allows
      filesystems to sliently skip deduplication of partial EOF blocks if
      they are not capable of doing so without requiring errors to be thrown
      to userspace.
    
      Existing filesystems are converted to user the new remap_file_range
      method, and both XFS and ocfs2 are modified to make use of the new
      generic checking infrastructure"
    
    * tag 'xfs-4.20-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: (28 commits)
      xfs: remove [cm]time update from reflink calls
      xfs: remove xfs_reflink_remap_range
      xfs: remove redundant remap partial EOF block checks
      xfs: support returning partial reflink results
      xfs: clean up xfs_reflink_remap_blocks call site
      xfs: fix pagecache truncation prior to reflink
      ocfs2: remove ocfs2_reflink_remap_range
      ocfs2: support partial clone range and dedupe range
      ocfs2: fix pagecache truncation prior to reflink
      ocfs2: truncate page cache for clone destination file before remapping
      vfs: clean up generic_remap_file_range_prep return value
      vfs: hide file range comparison function
      vfs: enable remap callers that can handle short operations
      vfs: plumb remap flags through the vfs dedupe functions
      vfs: plumb remap flags through the vfs clone functions
      vfs: make remap_file_range functions take and return bytes completed
      vfs: remap helper should update destination inode metadata
      vfs: pass remap flags to generic_remap_checks
      vfs: pass remap flags to generic_remap_file_range_prep
      vfs: combine the clone and dedupe into a single remap_file_range
      ...
    c2aa1a44
Name
Last commit
Last update
..
libxfs Loading commit data...
scrub Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
kmem.c Loading commit data...
kmem.h Loading commit data...
mrlock.h Loading commit data...
xfs.h Loading commit data...
xfs_acl.c Loading commit data...
xfs_acl.h Loading commit data...
xfs_aops.c Loading commit data...
xfs_aops.h Loading commit data...
xfs_attr_inactive.c Loading commit data...
xfs_attr_list.c Loading commit data...
xfs_bmap_item.c Loading commit data...
xfs_bmap_item.h Loading commit data...
xfs_bmap_util.c Loading commit data...
xfs_bmap_util.h Loading commit data...
xfs_buf.c Loading commit data...
xfs_buf.h Loading commit data...
xfs_buf_item.c Loading commit data...
xfs_buf_item.h Loading commit data...
xfs_dir2_readdir.c Loading commit data...
xfs_discard.c Loading commit data...
xfs_discard.h Loading commit data...
xfs_dquot.c Loading commit data...
xfs_dquot.h Loading commit data...
xfs_dquot_item.c Loading commit data...
xfs_dquot_item.h Loading commit data...
xfs_error.c Loading commit data...
xfs_error.h Loading commit data...
xfs_export.c Loading commit data...
xfs_export.h Loading commit data...
xfs_extent_busy.c Loading commit data...
xfs_extent_busy.h Loading commit data...
xfs_extfree_item.c Loading commit data...
xfs_extfree_item.h Loading commit data...
xfs_file.c Loading commit data...
xfs_filestream.c Loading commit data...
xfs_filestream.h Loading commit data...
xfs_fsmap.c Loading commit data...
xfs_fsmap.h Loading commit data...
xfs_fsops.c Loading commit data...
xfs_fsops.h Loading commit data...
xfs_globals.c Loading commit data...
xfs_icache.c Loading commit data...
xfs_icache.h Loading commit data...
xfs_icreate_item.c Loading commit data...
xfs_icreate_item.h Loading commit data...
xfs_inode.c Loading commit data...
xfs_inode.h Loading commit data...
xfs_inode_item.c Loading commit data...
xfs_inode_item.h Loading commit data...
xfs_ioctl.c Loading commit data...
xfs_ioctl.h Loading commit data...
xfs_ioctl32.c Loading commit data...
xfs_ioctl32.h Loading commit data...
xfs_iomap.c Loading commit data...
xfs_iomap.h Loading commit data...
xfs_iops.c Loading commit data...
xfs_iops.h Loading commit data...
xfs_itable.c Loading commit data...
xfs_itable.h Loading commit data...
xfs_linux.h Loading commit data...
xfs_log.c Loading commit data...
xfs_log.h Loading commit data...
xfs_log_cil.c Loading commit data...
xfs_log_priv.h Loading commit data...
xfs_log_recover.c Loading commit data...
xfs_message.c Loading commit data...
xfs_message.h Loading commit data...
xfs_mount.c Loading commit data...
xfs_mount.h Loading commit data...
xfs_mru_cache.c Loading commit data...
xfs_mru_cache.h Loading commit data...
xfs_ondisk.h Loading commit data...
xfs_pnfs.c Loading commit data...
xfs_pnfs.h Loading commit data...
xfs_qm.c Loading commit data...
xfs_qm.h Loading commit data...
xfs_qm_bhv.c Loading commit data...
xfs_qm_syscalls.c Loading commit data...
xfs_quota.h Loading commit data...
xfs_quotaops.c Loading commit data...
xfs_refcount_item.c Loading commit data...
xfs_refcount_item.h Loading commit data...
xfs_reflink.c Loading commit data...
xfs_reflink.h Loading commit data...
xfs_rmap_item.c Loading commit data...
xfs_rmap_item.h Loading commit data...
xfs_rtalloc.c Loading commit data...
xfs_rtalloc.h Loading commit data...
xfs_stats.c Loading commit data...
xfs_stats.h Loading commit data...
xfs_super.c Loading commit data...
xfs_super.h Loading commit data...
xfs_symlink.c Loading commit data...
xfs_symlink.h Loading commit data...
xfs_sysctl.c Loading commit data...
xfs_sysctl.h Loading commit data...
xfs_sysfs.c Loading commit data...
xfs_sysfs.h Loading commit data...
xfs_trace.c Loading commit data...
xfs_trace.h Loading commit data...
xfs_trans.c Loading commit data...
xfs_trans.h Loading commit data...
xfs_trans_ail.c Loading commit data...
xfs_trans_bmap.c Loading commit data...
xfs_trans_buf.c Loading commit data...
xfs_trans_dquot.c Loading commit data...
xfs_trans_extfree.c Loading commit data...
xfs_trans_inode.c Loading commit data...
xfs_trans_priv.h Loading commit data...
xfs_trans_refcount.c Loading commit data...
xfs_trans_rmap.c Loading commit data...
xfs_xattr.c Loading commit data...