diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-06-14 23:54:16 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-06-16 22:00:51 -0700 |
commit | a87555181d47522e985325c67b7d17c49dbd38de (patch) | |
tree | 16e7848551e64c1aa8b2038fabe2da4c3bd98dd7 /xlators/features/marker/src/marker-quota-helper.h | |
parent | 01d67311c83ae272f3ee3632c1e8f13ccebaca81 (diff) |
features/marker-quota: fixes in rename path.
- remove xattrs from newpath after rename is complete.
- hold inodelk on both parents (if they are different) before doing rename and
gather contribution values of oldpath and newpath to their parents while still
holding the locks. Use these contribution values to reduce parent sizes.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2697 (Quota: add-brick creates the size go awkward, though it was perfect earlier)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2697
Diffstat (limited to 'xlators/features/marker/src/marker-quota-helper.h')
-rw-r--r-- | xlators/features/marker/src/marker-quota-helper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/features/marker/src/marker-quota-helper.h b/xlators/features/marker/src/marker-quota-helper.h index 9a24c8c3d94..c72cd94e814 100644 --- a/xlators/features/marker/src/marker-quota-helper.h +++ b/xlators/features/marker/src/marker-quota-helper.h @@ -22,6 +22,7 @@ #define _CONFIG_H #include "config.h" #endif + #include "marker-quota.h" #define QUOTA_FREE_CONTRIBUTION_NODE(_contribution) \ @@ -73,4 +74,8 @@ quota_local_unref (xlator_t *, quota_local_t *); inode_contribution_t * get_contribution_node (inode_t *, quota_inode_ctx_t *); + +inode_contribution_t * +get_contribution_from_loc (xlator_t *this, loc_t *loc); + #endif |