mirror of
git://sourceware.org/git/lvm2.git
synced 2025-09-16 17:44:24 +03:00
fix unused o_direct label
This commit is contained in:
@@ -363,13 +363,14 @@ int dev_open_flags(struct device *dev, int flags, int direct, int quiet)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
opened:
|
|
||||||
dev->open_count++;
|
|
||||||
dev->flags &= ~DEV_ACCESSED_W;
|
|
||||||
#ifdef O_DIRECT_SUPPORT
|
#ifdef O_DIRECT_SUPPORT
|
||||||
|
opened:
|
||||||
if (direct)
|
if (direct)
|
||||||
dev->flags |= DEV_O_DIRECT_TESTED;
|
dev->flags |= DEV_O_DIRECT_TESTED;
|
||||||
#endif
|
#endif
|
||||||
|
dev->open_count++;
|
||||||
|
dev->flags &= ~DEV_ACCESSED_W;
|
||||||
|
|
||||||
if ((flags & O_ACCMODE) == O_RDWR)
|
if ((flags & O_ACCMODE) == O_RDWR)
|
||||||
dev->flags |= DEV_OPENED_RW;
|
dev->flags |= DEV_OPENED_RW;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user