xfs_trans.c (a27f6ef4e636c2437090b87c4eb0f587b60d7123) xfs_trans.c (3fd129b63fd062a0d8f5d55994a6e98896c20fa7)
1/*
2 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
3 * Copyright (C) 2010 Red Hat, Inc.
4 * All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation.

--- 203 unchanged lines hidden (view full) ---

212 xfs_log_done(tp->t_mountp, tp->t_ticket, NULL, false);
213 tp->t_ticket = NULL;
214 tp->t_log_res = 0;
215 tp->t_flags &= ~XFS_TRANS_PERM_LOG_RES;
216 }
217
218undo_blocks:
219 if (blocks > 0) {
1/*
2 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
3 * Copyright (C) 2010 Red Hat, Inc.
4 * All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation.

--- 203 unchanged lines hidden (view full) ---

212 xfs_log_done(tp->t_mountp, tp->t_ticket, NULL, false);
213 tp->t_ticket = NULL;
214 tp->t_log_res = 0;
215 tp->t_flags &= ~XFS_TRANS_PERM_LOG_RES;
216 }
217
218undo_blocks:
219 if (blocks > 0) {
220 xfs_mod_fdblocks(tp->t_mountp, (int64_t)blocks, rsvd);
220 xfs_mod_fdblocks(tp->t_mountp, -((int64_t)blocks), rsvd);
221 tp->t_blk_res = 0;
222 }
223
224 current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS);
225
226 return error;
227}
228

--- 84 unchanged lines hidden (view full) ---

313 flags &= ~XFS_TRANS_SB_DIRTY;
314 break;
315 case XFS_TRANS_SB_RES_FDBLOCKS:
316 /*
317 * The allocation has already been applied to the
318 * in-core superblock's counter. This should only
319 * be applied to the on-disk superblock.
320 */
221 tp->t_blk_res = 0;
222 }
223
224 current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS);
225
226 return error;
227}
228

--- 84 unchanged lines hidden (view full) ---

313 flags &= ~XFS_TRANS_SB_DIRTY;
314 break;
315 case XFS_TRANS_SB_RES_FDBLOCKS:
316 /*
317 * The allocation has already been applied to the
318 * in-core superblock's counter. This should only
319 * be applied to the on-disk superblock.
320 */
321 ASSERT(delta < 0);
322 tp->t_res_fdblocks_delta += delta;
323 if (xfs_sb_version_haslazysbcount(&mp->m_sb))
324 flags &= ~XFS_TRANS_SB_DIRTY;
325 break;
326 case XFS_TRANS_SB_FREXTENTS:
327 /*
328 * Track the number of blocks allocated in the
329 * transaction. Make sure it does not exceed the

--- 754 unchanged lines hidden ---
321 tp->t_res_fdblocks_delta += delta;
322 if (xfs_sb_version_haslazysbcount(&mp->m_sb))
323 flags &= ~XFS_TRANS_SB_DIRTY;
324 break;
325 case XFS_TRANS_SB_FREXTENTS:
326 /*
327 * Track the number of blocks allocated in the
328 * transaction. Make sure it does not exceed the

--- 754 unchanged lines hidden ---