aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/lcnalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ntfs/lcnalloc.c')
-rw-r--r--fs/ntfs/lcnalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ntfs/lcnalloc.c b/fs/ntfs/lcnalloc.c
index 7087b5b0e6ce..a4bc07616e5d 100644
--- a/fs/ntfs/lcnalloc.c
+++ b/fs/ntfs/lcnalloc.c
@@ -293,7 +293,7 @@ runlist_element *ntfs_cluster_alloc(ntfs_volume *vol, const VCN start_vcn,
293 buf_size = i_size - last_read_pos; 293 buf_size = i_size - last_read_pos;
294 buf_size <<= 3; 294 buf_size <<= 3;
295 lcn = bmp_pos & 7; 295 lcn = bmp_pos & 7;
296 bmp_pos &= ~7; 296 bmp_pos &= ~(LCN)7;
297 ntfs_debug("Before inner while loop: buf_size %i, lcn 0x%llx, " 297 ntfs_debug("Before inner while loop: buf_size %i, lcn 0x%llx, "
298 "bmp_pos 0x%llx, need_writeback %i.", buf_size, 298 "bmp_pos 0x%llx, need_writeback %i.", buf_size,
299 (unsigned long long)lcn, 299 (unsigned long long)lcn,
@@ -311,7 +311,7 @@ runlist_element *ntfs_cluster_alloc(ntfs_volume *vol, const VCN start_vcn,
311 (unsigned int)*byte); 311 (unsigned int)*byte);
312 /* Skip full bytes. */ 312 /* Skip full bytes. */
313 if (*byte == 0xff) { 313 if (*byte == 0xff) {
314 lcn = (lcn + 8) & ~7; 314 lcn = (lcn + 8) & ~(LCN)7;
315 ntfs_debug("Continuing while loop 1."); 315 ntfs_debug("Continuing while loop 1.");
316 continue; 316 continue;
317 } 317 }