xfs: use current->journal_info for detecting transaction recursion
Because the iomap code using PF_MEMALLOC_NOFS to detect transaction recursion in XFS is just wrong. Remove it from the iomap code and replace it with XFS specific internal checks using current->journal_info instead. [djwong: This change also realigns the lifetime of NOFS flag changes to match the incore transaction, instead of the inconsistent scheme we have now.] Fixes: 9070733b ("xfs: abstract PF_FSTRANS to PF_MEMALLOC_NOFS") Signed-off-by:Dave Chinner <dchinner@redhat.com> Reviewed-by:
Darrick J. Wong <djwong@kernel.org> Signed-off-by:
Darrick J. Wong <djwong@kernel.org> Reviewed-by:
Christoph Hellwig <hch@lst.de>
Showing
- fs/iomap/buffered-io.c 0 additions, 7 deletionsfs/iomap/buffered-io.c
- fs/xfs/libxfs/xfs_btree.c 10 additions, 2 deletionsfs/xfs/libxfs/xfs_btree.c
- fs/xfs/xfs_aops.c 15 additions, 2 deletionsfs/xfs/xfs_aops.c
- fs/xfs/xfs_trans.c 5 additions, 15 deletionsfs/xfs/xfs_trans.c
- fs/xfs/xfs_trans.h 30 additions, 0 deletionsfs/xfs/xfs_trans.h
Loading
Please register or sign in to comment