Merge tag 'wberr-v4.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton...
[sfrench/cifs-2.6.git] / fs / xfs / xfs_symlink.c
index 23a50d7aa46a738fb3f4e73c343d2d39f363aa55..68d3ca2c4968054646345dab2bd3a76f97490fb8 100644 (file)
@@ -378,7 +378,7 @@ xfs_symlink(
                xfs_trans_set_sync(tp);
        }
 
-       error = xfs_defer_finish(&tp, &dfops, NULL);
+       error = xfs_defer_finish(&tp, &dfops);
        if (error)
                goto out_bmap_cancel;
 
@@ -497,7 +497,8 @@ xfs_inactive_symlink_rmt(
        /*
         * Commit the first transaction.  This logs the EFI and the inode.
         */
-       error = xfs_defer_finish(&tp, &dfops, ip);
+       xfs_defer_ijoin(&dfops, ip);
+       error = xfs_defer_finish(&tp, &dfops);
        if (error)
                goto error_bmap_cancel;
        /*