1
0
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:
Alasdair Kergon
2005-04-07 12:25:33 +00:00
parent a4cf792e6d
commit ae1f8cdad2

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