On 5/31/22 10:26 PM, Christoph Hellwig wrote: > 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). I verified it. The patch is no longer needed. I will remove the patch.