On Tue, May 31, 2022 at 12:15:19PM -0700, Stefan Roesch wrote: > The problem is that xfs_iolock_iocb uses: iocb->ki_filp->f_inode, > but xfs_file_buffered_write: iocb->ki_ki_filp->f_mapping->host > > This requires to pass in the xfs_inode *. Both must be the same. The indirection only matters for device files (and coda).