1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

read/write may be macros

This commit is contained in:
Alasdair Kergon 2005-03-10 20:23:36 +00:00
parent 47de39908b
commit 1cbfe69961
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.01.08 -
================================
read/write may be macros.
Version 2.01.07 - 8th March 2005
================================

View File

@ -279,7 +279,7 @@ int label_read(struct device *dev, struct label **result)
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;
return r;
@ -309,7 +309,7 @@ int label_write(struct device *dev, struct label *label)
lh->sector_xl = xlate64(label->sector);
lh->offset_xl = xlate32(sizeof(*lh));
if (!label->labeller->ops->write(label, buf)) {
if (!(label->labeller->ops->write)(label, buf)) {
stack;
return 0;
}