mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-29 15:22:30 +03:00
make: opened can be needed for either defines case
Reported-by: adamboardman of gemian
This commit is contained in:
parent
9971459d19
commit
df70dca995
@ -380,8 +380,10 @@ int dev_open_flags(struct device *dev, int flags, int direct, int quiet)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef O_DIRECT_SUPPORT
|
||||
#if defined(O_NOATIME) || defined(O_DIRECT_SUPPORT)
|
||||
opened:
|
||||
#endif
|
||||
#ifdef O_DIRECT_SUPPORT
|
||||
if (direct)
|
||||
dev->flags |= DEV_O_DIRECT_TESTED;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user