Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11964
b: refs/heads/master
c: 2a6fc4e
h: refs/heads/master
v: v3
  • Loading branch information
Anton Altaparmakov committed Oct 4, 2005
1 parent fc1c9e0 commit eb68737
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8925d4f0d3479b9c5ed7e49acc648beccca95f21
refs/heads/master: 2a6fc4e1b0f7d2ec3711d5b1782fb30f78cca765
4 changes: 4 additions & 0 deletions trunk/fs/ntfs/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ ToDo/Notes:
reason we cannot simply read the size from the vfs inode i_size is
that this is not necessarily uptodate. This happens when
ntfs_attr_make_non_resident() is called in the ->truncate call path.
- Fix ntfs_attr_make_non_resident() to update the vfs inode i_blocks
which is zero for a resident attribute but should no longer be zero
once the attribute is non-resident as it then has real clusters
allocated.

2.1.24 - Lots of bug fixes and support more clean journal states.

Expand Down
4 changes: 3 additions & 1 deletion trunk/fs/ntfs/attrib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,9 @@ int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size)
ffs(ni->itype.compressed.block_size) - 1;
ni->itype.compressed.block_clusters = 1U <<
a->data.non_resident.compression_unit;
}
vi->i_blocks = ni->itype.compressed.size >> 9;
} else
vi->i_blocks = ni->allocated_size >> 9;
write_unlock_irqrestore(&ni->size_lock, flags);
/*
* This needs to be last since the address space operations ->readpage
Expand Down

0 comments on commit eb68737

Please sign in to comment.