aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dquot_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_dquot_item.c')
-rw-r--r--fs/xfs/xfs_dquot_item.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dquot_item.c b/fs/xfs/xfs_dquot_item.c
index 0dee0b71029d..34baeae45265 100644
--- a/fs/xfs/xfs_dquot_item.c
+++ b/fs/xfs/xfs_dquot_item.c
@@ -73,7 +73,6 @@ xfs_qm_dquot_logitem_format(
73 logvec->i_len = sizeof(xfs_disk_dquot_t); 73 logvec->i_len = sizeof(xfs_disk_dquot_t);
74 logvec->i_type = XLOG_REG_TYPE_DQUOT; 74 logvec->i_type = XLOG_REG_TYPE_DQUOT;
75 75
76 ASSERT(2 == lip->li_desc->lid_size);
77 qlip->qli_format.qlf_size = 2; 76 qlip->qli_format.qlf_size = 2;
78 77
79} 78}
@@ -134,7 +133,7 @@ xfs_qm_dquot_logitem_push(
134 * lock without sleeping, then there must not have been 133 * lock without sleeping, then there must not have been
135 * anyone in the process of flushing the dquot. 134 * anyone in the process of flushing the dquot.
136 */ 135 */
137 error = xfs_qm_dqflush(dqp, 0); 136 error = xfs_qm_dqflush(dqp, SYNC_TRYLOCK);
138 if (error) 137 if (error)
139 xfs_warn(dqp->q_mount, "%s: push error %d on dqp %p", 138 xfs_warn(dqp->q_mount, "%s: push error %d on dqp %p",
140 __func__, error, dqp); 139 __func__, error, dqp);
@@ -237,7 +236,7 @@ xfs_qm_dquot_logitem_trylock(
237 if (atomic_read(&dqp->q_pincount) > 0) 236 if (atomic_read(&dqp->q_pincount) > 0)
238 return XFS_ITEM_PINNED; 237 return XFS_ITEM_PINNED;
239 238
240 if (!xfs_qm_dqlock_nowait(dqp)) 239 if (!xfs_dqlock_nowait(dqp))
241 return XFS_ITEM_LOCKED; 240 return XFS_ITEM_LOCKED;
242 241
243 if (!xfs_dqflock_nowait(dqp)) { 242 if (!xfs_dqflock_nowait(dqp)) {