• Linus Torvalds's avatar
    Merge tag 'iomap-5.9-merge-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 0e4656a2
    Linus Torvalds authored
    Pull iomap updates from Darrick Wong:
     "The most notable changes are:
    
       - iomap no longer invalidates the page cache when performing a direct
         read, since doing so is unnecessary and the old directio code
         doesn't do that either.
    
       - iomap embraced the use of returning ENOTBLK from a direct write to
         trigger falling back to a buffered write since ext4 already did
         this and btrfs wants it for their port.
    
       - iomap falls back to buffered writes if we're doing a direct write
         and the page cache invalidation after the flush fails; this was
         necessary to handle a corner case in the btrfs port.
    
       - Remove email virus scanner detritus that was accidentally included
         in yesterday's pull request. Clearly I need(ed) to update my git
         branch checker scripts. :("
    
    * tag 'iomap-5.9-merge-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
      iomap: fall back to buffered writes for invalidation failures
      xfs: use ENOTBLK for direct I/O to buffered I/O fallback
      iomap: Only invalidate page cache pages on direct IO writes
      iomap: Make sure iomap_end is called after iomap_begin
    0e4656a2
xfs_file.c 34.3 KB