diff options
Diffstat (limited to 'xlators/features/marker/src/marker.c')
-rw-r--r-- | xlators/features/marker/src/marker.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 6265028a9df..66bdfbcaebd 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -620,7 +620,7 @@ marker_mkdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if (priv->feature_enabled & GF_QUOTA) - mq_create_xattrs_txn (this, &local->loc); + mq_create_xattrs_txn (this, &local->loc, NULL); if (priv->feature_enabled & GF_XTIME) marker_xtime_update_marks (this, local); @@ -695,7 +695,7 @@ marker_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if (priv->feature_enabled & GF_QUOTA) - mq_create_xattrs_txn (this, &local->loc); + mq_create_xattrs_txn (this, &local->loc, buf); if (priv->feature_enabled & GF_XTIME) marker_xtime_update_marks (this, local); @@ -766,7 +766,7 @@ marker_writev_cbk (call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if (priv->feature_enabled & GF_QUOTA) - mq_initiate_quota_txn (this, &local->loc); + mq_initiate_quota_txn (this, &local->loc, postbuf); if (priv->feature_enabled & GF_XTIME) marker_xtime_update_marks (this, local); @@ -989,7 +989,7 @@ marker_link_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if (priv->feature_enabled & GF_QUOTA) { if (!local->skip_txn) - mq_create_xattrs_txn (this, &local->loc); + mq_create_xattrs_txn (this, &local->loc, buf); } @@ -1079,7 +1079,7 @@ marker_rename_done (call_frame_t *frame, void *cookie, xlator_t *this, newloc.name++; newloc.parent = inode_ref (local->loc.parent); - mq_create_xattrs_txn (this, &newloc); + mq_create_xattrs_txn (this, &newloc, &local->buf); loc_wipe (&newloc); @@ -1227,6 +1227,7 @@ marker_rename_cbk (call_frame_t *frame, void *cookie, xlator_t *this, goto quota_err; } + local->buf = *buf; stub = fop_rename_cbk_stub (frame, default_rename_cbk, op_ret, op_errno, buf, preoldparent, postoldparent, prenewparent, @@ -1596,7 +1597,7 @@ marker_truncate_cbk (call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if (priv->feature_enabled & GF_QUOTA) - mq_initiate_quota_txn (this, &local->loc); + mq_initiate_quota_txn (this, &local->loc, postbuf); if (priv->feature_enabled & GF_XTIME) marker_xtime_update_marks (this, local); @@ -1665,7 +1666,7 @@ marker_ftruncate_cbk (call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if (priv->feature_enabled & GF_QUOTA) - mq_initiate_quota_txn (this, &local->loc); + mq_initiate_quota_txn (this, &local->loc, postbuf); if (priv->feature_enabled & GF_XTIME) marker_xtime_update_marks (this, local); @@ -1737,7 +1738,7 @@ marker_symlink_cbk (call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if (priv->feature_enabled & GF_QUOTA) { - mq_create_xattrs_txn (this, &local->loc); + mq_create_xattrs_txn (this, &local->loc, buf); } if (priv->feature_enabled & GF_XTIME) @@ -1812,7 +1813,7 @@ marker_mknod_cbk (call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if ((priv->feature_enabled & GF_QUOTA) && (S_ISREG (local->mode))) { - mq_create_xattrs_txn (this, &local->loc); + mq_create_xattrs_txn (this, &local->loc, buf); } if (priv->feature_enabled & GF_XTIME) @@ -1885,7 +1886,7 @@ marker_fallocate_cbk (call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if (priv->feature_enabled & GF_QUOTA) - mq_initiate_quota_txn (this, &local->loc); + mq_initiate_quota_txn (this, &local->loc, postbuf); if (priv->feature_enabled & GF_XTIME) marker_xtime_update_marks (this, local); @@ -1954,7 +1955,7 @@ marker_discard_cbk(call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if (priv->feature_enabled & GF_QUOTA) - mq_initiate_quota_txn (this, &local->loc); + mq_initiate_quota_txn (this, &local->loc, postbuf); if (priv->feature_enabled & GF_XTIME) marker_xtime_update_marks (this, local); @@ -2021,7 +2022,7 @@ marker_zerofill_cbk(call_frame_t *frame, void *cookie, xlator_t *this, priv = this->private; if (priv->feature_enabled & GF_QUOTA) - mq_initiate_quota_txn (this, &local->loc); + mq_initiate_quota_txn (this, &local->loc, postbuf); if (priv->feature_enabled & GF_XTIME) marker_xtime_update_marks (this, local); |