summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-05-22 02:10:25 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-05-22 01:08:42 -0700
commit61e343c72b384faa56e034750bd5bb5b4667681b (patch)
treee642372fccd9b9c9099322df5d92eb096d65a45d
parent9cec4a0a790cc74106f92375506d7a16e09bdb10 (diff)
THIS: default_notify to use xlator_notify for THIS compatibility
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
-rw-r--r--libglusterfs/src/defaults.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libglusterfs/src/defaults.c b/libglusterfs/src/defaults.c
index ca7c34b3a0a..77451d11c96 100644
--- a/libglusterfs/src/defaults.c
+++ b/libglusterfs/src/defaults.c
@@ -1451,11 +1451,8 @@ default_lock_fnotify (call_frame_t *frame, xlator_t *this,
/* notify */
-int32_t
-default_notify (xlator_t *this,
- int32_t event,
- void *data,
- ...)
+int
+default_notify (xlator_t *this, int32_t event, void *data, ...)
{
switch (event)
{
@@ -1465,7 +1462,7 @@ default_notify (xlator_t *this,
while (list)
{
- list->xlator->notify (list->xlator, event, this);
+ xlator_notify (list->xlator, event, this);
list = list->next;
}
}
@@ -1476,7 +1473,7 @@ default_notify (xlator_t *this,
{
xlator_list_t *parent = this->parents;
while (parent) {
- parent->xlator->notify (parent->xlator, event, this, NULL);
+ xlator_notify (parent->xlator, event, this, NULL);
parent = parent->next;
}
}