]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: hsm: rename hai_zero() HSM function
authorJC Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Tue, 5 Apr 2016 01:36:52 +0000 (21:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 03:47:04 +0000 (20:47 -0700)
rename hai_zero() to hai_first(). Use a better name for hai helper

Signed-off-by: JC Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3709
Reviewed-on: http://review.whamcloud.com/7254
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre/lustre_user.h
drivers/staging/lustre/lustre/mdc/mdc_request.c

index 19f2271cc6b950e125c7974c069c7a8a07051892..4672145587cdb33613e91bc9961961f14cee5a7f 100644 (file)
@@ -1095,7 +1095,7 @@ struct hsm_action_list {
        __u32 padding1;
        char  hal_fsname[0];   /* null-terminated */
        /* struct hsm_action_item[hal_count] follows, aligned on 8-byte
-        * boundaries. See hai_zero
+        * boundaries. See hai_first
         */
 } __packed;
 
@@ -1109,7 +1109,7 @@ static inline int cfs_size_round(int val)
 #endif
 
 /* Return pointer to first hai in action list */
-static inline struct hsm_action_item *hai_zero(struct hsm_action_list *hal)
+static inline struct hsm_action_item *hai_first(struct hsm_action_list *hal)
 {
        return (struct hsm_action_item *)(hal->hal_fsname +
                                          cfs_size_round(strlen(hal-> \
@@ -1131,7 +1131,7 @@ static inline int hal_size(struct hsm_action_list *hal)
        struct hsm_action_item *hai;
 
        sz = sizeof(*hal) + cfs_size_round(strlen(hal->hal_fsname) + 1);
-       hai = hai_zero(hal);
+       hai = hai_first(hal);
        for (i = 0; i < hal->hal_count; i++, hai = hai_next(hai))
                sz += cfs_size_round(hai->hai_len);
 
index c458f28c1d89ad2939d3de1cc1a1bbc75deb766b..6023c2c1386bdbbf6d3f6ceca3983e85b5306209 100644 (file)
@@ -1952,7 +1952,7 @@ static void lustre_swab_hal(struct hsm_action_list *h)
        __swab32s(&h->hal_count);
        __swab32s(&h->hal_archive_id);
        __swab64s(&h->hal_flags);
-       hai = hai_zero(h);
+       hai = hai_first(h);
        for (i = 0; i < h->hal_count; i++, hai = hai_next(hai))
                lustre_swab_hai(hai);
 }