diff options
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heald.h | 3 | ||||
-rw-r--r-- | xlators/cluster/afr/src/pump.c | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heald.h b/xlators/cluster/afr/src/afr-self-heald.h index 44fd9f385..57b29ce2d 100644 --- a/xlators/cluster/afr/src/afr-self-heald.h +++ b/xlators/cluster/afr/src/afr-self-heald.h @@ -48,9 +48,6 @@ void afr_build_root_loc (xlator_t *this, loc_t *loc); int afr_set_root_gfid (dict_t *dict); -inline void -afr_fill_loc_info (loc_t *loc, struct iatt *iatt, struct iatt *parent); - void afr_do_poll_self_heal (void *data); diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c index 18aee82cc..cec8066e2 100644 --- a/xlators/cluster/afr/src/pump.c +++ b/xlators/cluster/afr/src/pump.c @@ -32,6 +32,13 @@ #include "glusterfs.h" static uint64_t pump_pid = 0; +static inline void +pump_fill_loc_info (loc_t *loc, struct iatt *iatt, struct iatt *parent) +{ + afr_update_loc_gfids (loc, iatt, parent); + uuid_copy (loc->inode->gfid, iatt->ia_gfid); +} + static int pump_mark_start_pending (xlator_t *this) { @@ -407,7 +414,7 @@ gf_pump_traverse_directory (loc_t *loc) entry_loc.path); continue; } - afr_fill_loc_info (&entry_loc, &iatt, + pump_fill_loc_info (&entry_loc, &iatt, &parent); pump_update_resume_state (this, entry_loc.path); |