mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
read/write may be macros
This commit is contained in:
parent
47de39908b
commit
1cbfe69961
@ -1,5 +1,6 @@
|
||||
Version 2.01.08 -
|
||||
================================
|
||||
read/write may be macros.
|
||||
|
||||
Version 2.01.07 - 8th March 2005
|
||||
================================
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user