Commit f7aafa7c authored by Niu Yawei's avatar Niu Yawei Committed by Greg Kroah-Hartman

staging: lustre: obd: rename lsr_padding to lsr_valid

Simple variable rename.
Signed-off-by: default avatarNiu Yawei <yawei.niu@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4345
Reviewed-on: http://review.whamcloud.com/10223Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Reviewed-by: default avatarMike Pershin <mike.pershin@intel.com>
Reviewed-by: default avatarAlex Zhuravlev <alexey.zhuravlev@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d07d4cb8
...@@ -3036,7 +3036,7 @@ struct llog_setattr64_rec { ...@@ -3036,7 +3036,7 @@ struct llog_setattr64_rec {
__u32 lsr_uid_h; __u32 lsr_uid_h;
__u32 lsr_gid; __u32 lsr_gid;
__u32 lsr_gid_h; __u32 lsr_gid_h;
__u64 lsr_padding; __u64 lsr_valid;
struct llog_rec_tail lsr_tail; struct llog_rec_tail lsr_tail;
} __packed; } __packed;
......
...@@ -224,6 +224,7 @@ void lustre_swab_llog_rec(struct llog_rec_hdr *rec) ...@@ -224,6 +224,7 @@ void lustre_swab_llog_rec(struct llog_rec_hdr *rec)
__swab32s(&lsr->lsr_uid_h); __swab32s(&lsr->lsr_uid_h);
__swab32s(&lsr->lsr_gid); __swab32s(&lsr->lsr_gid);
__swab32s(&lsr->lsr_gid_h); __swab32s(&lsr->lsr_gid_h);
__swab64s(&lsr->lsr_valid);
tail = &lsr->lsr_tail; tail = &lsr->lsr_tail;
break; break;
} }
......
...@@ -3170,10 +3170,10 @@ void lustre_assert_wire_constants(void) ...@@ -3170,10 +3170,10 @@ void lustre_assert_wire_constants(void)
(long long)(int)offsetof(struct llog_setattr64_rec, lsr_gid_h)); (long long)(int)offsetof(struct llog_setattr64_rec, lsr_gid_h));
LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid_h) == 4, "found %lld\n", LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid_h) == 4, "found %lld\n",
(long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid_h)); (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_gid_h));
LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_padding) == 48, "found %lld\n", LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_valid) == 48, "found %lld\n",
(long long)(int)offsetof(struct llog_setattr64_rec, lsr_padding)); (long long)(int)offsetof(struct llog_setattr64_rec, lsr_valid));
LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_padding) == 8, "found %lld\n", LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_valid) == 8, "found %lld\n",
(long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_padding)); (long long)(int)sizeof(((struct llog_setattr64_rec *)0)->lsr_valid));
LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_tail) == 56, "found %lld\n", LASSERTF((int)offsetof(struct llog_setattr64_rec, lsr_tail) == 56, "found %lld\n",
(long long)(int)offsetof(struct llog_setattr64_rec, lsr_tail)); (long long)(int)offsetof(struct llog_setattr64_rec, lsr_tail));
LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_tail) == 8, "found %lld\n", LASSERTF((int)sizeof(((struct llog_setattr64_rec *)0)->lsr_tail) == 8, "found %lld\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment