reactos/drivers/filesystems/udfs/Include/misc_common.cpp
Pierre Schweitzer 321bcc056d Create the AHCI branch for Aman's work
svn path=/branches/GSoC_2016/AHCI/; revision=71203
2016-04-24 20:17:09 +00:00

33 lines
780 B
C++

////////////////////////////////////////////////////////////////////
// Copyright (C) Alexander Telyatnikov, Ivan Keliukh, Yegor Anchishkin, SKIF Software, 1999-2013. Kiev, Ukraine
// All rights reserved
// This file was released under the GPLv2 on June 2015.
////////////////////////////////////////////////////////////////////
VOID
UDFSetModified(
IN PVCB Vcb
)
{
if(UDFInterlockedIncrement((PLONG)&(Vcb->Modified)) & 0x80000000)
Vcb->Modified = 2;
} // end UDFSetModified()
VOID
UDFPreClrModified(
IN PVCB Vcb
)
{
Vcb->Modified = 1;
} // end UDFPreClrModified()
VOID
UDFClrModified(
IN PVCB Vcb
)
{
KdPrint(("ClrModified\n"));
UDFInterlockedDecrement((PLONG)&(Vcb->Modified));
} // end UDFClrModified()