1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-04 21:47:46 +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;
}
opened:
dev->open_count++;
dev->flags &= ~DEV_ACCESSED_W;
#ifdef O_DIRECT_SUPPORT
opened:
if (direct)
dev->flags |= DEV_O_DIRECT_TESTED;
#endif
dev->open_count++;
dev->flags &= ~DEV_ACCESSED_W;
if ((flags & O_ACCMODE) == O_RDWR)
dev->flags |= DEV_OPENED_RW;
else