]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/xfs/libxfs/xfs_bmap.c
Merge branch 'xfs-4.10-misc-fixes-1' into for-next
[mirror_ubuntu-bionic-kernel.git] / fs / xfs / libxfs / xfs_bmap.c
index 42f4e7a84e2e8019343c6a7613612fad2ee1b040..5c3c4dd1473564ba33eb98aeeae1d560d6da4b80 100644 (file)
@@ -4902,8 +4902,11 @@ xfs_bmap_del_extent_delay(
         * sb counters as we might have to borrow some blocks for the
         * indirect block accounting.
         */
-       xfs_trans_reserve_quota_nblks(NULL, ip, -((long)del->br_blockcount), 0,
+       error = xfs_trans_reserve_quota_nblks(NULL, ip,
+                       -((long)del->br_blockcount), 0,
                        isrt ? XFS_QMOPT_RES_RTBLKS : XFS_QMOPT_RES_REGBLKS);
+       if (error)
+               return error;
        ip->i_delayed_blks -= del->br_blockcount;
 
        if (whichfork == XFS_COW_FORK)