mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Fixed a minor endianness ajustment bug
The endianness ajustment was the wrong one though it did the correct thing.
This commit is contained in:
parent
894b7dd36e
commit
094f9b3f2d
@ -1584,7 +1584,7 @@ static int ntfs_ih_takeout(ntfs_index_context *icx, INDEX_HEADER *ih,
|
|||||||
freed_space = le32_to_cpu(ih->allocated_size)
|
freed_space = le32_to_cpu(ih->allocated_size)
|
||||||
- le32_to_cpu(ih->index_length);
|
- le32_to_cpu(ih->index_length);
|
||||||
if (full && (freed_space > 0) && !(freed_space & 7)) {
|
if (full && (freed_space > 0) && !(freed_space & 7)) {
|
||||||
ntfs_ir_truncate(icx, cpu_to_le32(ih->index_length));
|
ntfs_ir_truncate(icx, le32_to_cpu(ih->index_length));
|
||||||
/* do nothing if truncation fails */
|
/* do nothing if truncation fails */
|
||||||
}
|
}
|
||||||
ntfs_inode_mark_dirty(icx->actx->ntfs_ino);
|
ntfs_inode_mark_dirty(icx->actx->ntfs_ino);
|
||||||
|
Loading…
Reference in New Issue
Block a user