1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

fix unused o_direct label

This commit is contained in:
Alasdair Kergon 2005-04-07 12:25:33 +00:00
parent 90395b8d53
commit 0c86ac44a9

View File

@ -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