mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
read/write may be macros
This commit is contained in:
parent
47de39908b
commit
1cbfe69961
@ -1,5 +1,6 @@
|
|||||||
Version 2.01.08 -
|
Version 2.01.08 -
|
||||||
================================
|
================================
|
||||||
|
read/write may be macros.
|
||||||
|
|
||||||
Version 2.01.07 - 8th March 2005
|
Version 2.01.07 - 8th March 2005
|
||||||
================================
|
================================
|
||||||
|
@ -279,7 +279,7 @@ int label_read(struct device *dev, struct label **result)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((r = l->ops->read(l, dev, buf, result)) && result && *result)
|
if ((r = (l->ops->read)(l, dev, buf, result)) && result && *result)
|
||||||
(*result)->sector = sector;
|
(*result)->sector = sector;
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
@ -309,7 +309,7 @@ int label_write(struct device *dev, struct label *label)
|
|||||||
lh->sector_xl = xlate64(label->sector);
|
lh->sector_xl = xlate64(label->sector);
|
||||||
lh->offset_xl = xlate32(sizeof(*lh));
|
lh->offset_xl = xlate32(sizeof(*lh));
|
||||||
|
|
||||||
if (!label->labeller->ops->write(label, buf)) {
|
if (!(label->labeller->ops->write)(label, buf)) {
|
||||||
stack;
|
stack;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user