X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fntfs%2Fcompress.c;h=ee5ae706f8611cb5f2e66a8b42d1fa5675b11579;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=cc3aac147ba30b888348e138a64663b0a07d3e34;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/fs/ntfs/compress.c b/fs/ntfs/compress.c index cc3aac147..ee5ae706f 100644 --- a/fs/ntfs/compress.c +++ b/fs/ntfs/compress.c @@ -24,7 +24,11 @@ #include #include #include +#include +#include "attrib.h" +#include "inode.h" +#include "debug.h" #include "ntfs.h" /** @@ -58,7 +62,7 @@ static u8 *ntfs_compression_buffer = NULL; /** * ntfs_cb_lock - spinlock which protects ntfs_compression_buffer */ -static spinlock_t ntfs_cb_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(ntfs_cb_lock); /** * allocate_compression_buffers - allocate the decompression buffers @@ -600,9 +604,9 @@ lock_retry_remap: /* Seek to element containing target vcn. */ while (rl->length && rl[1].vcn <= vcn) rl++; - lcn = ntfs_vcn_to_lcn(rl, vcn); + lcn = ntfs_rl_vcn_to_lcn(rl, vcn); } else - lcn = (LCN)LCN_RL_NOT_MAPPED; + lcn = LCN_RL_NOT_MAPPED; ntfs_debug("Reading vcn = 0x%llx, lcn = 0x%llx.", (unsigned long long)vcn, (unsigned long long)lcn); @@ -926,7 +930,7 @@ map_rl_err: rl_err: up_read(&ni->runlist.lock); - ntfs_error(vol->sb, "ntfs_vcn_to_lcn() failed. Cannot read " + ntfs_error(vol->sb, "ntfs_rl_vcn_to_lcn() failed. Cannot read " "compression block."); goto err_out;