xfs: don't use current->journal_info
[sfrench/cifs-2.6.git] / fs / xfs / scrub / common.c
index abff79a77c72b632649f40efdba51e3fcd3498de..47a20cf5205f00f9f99cb77c78fe36bcd6db6407 100644 (file)
@@ -1044,9 +1044,7 @@ xchk_irele(
        struct xfs_scrub        *sc,
        struct xfs_inode        *ip)
 {
-       if (current->journal_info != NULL) {
-               ASSERT(current->journal_info == sc->tp);
-
+       if (sc->tp) {
                /*
                 * If we are in a transaction, we /cannot/ drop the inode
                 * ourselves, because the VFS will trigger writeback, which