aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ntfs')
-rw-r--r--fs/ntfs/ChangeLog4
-rw-r--r--fs/ntfs/attrib.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/fs/ntfs/ChangeLog b/fs/ntfs/ChangeLog
index 60ba3c5cb2ea..045beda82942 100644
--- a/fs/ntfs/ChangeLog
+++ b/fs/ntfs/ChangeLog
@@ -43,6 +43,10 @@ ToDo/Notes:
43 reason we cannot simply read the size from the vfs inode i_size is 43 reason we cannot simply read the size from the vfs inode i_size is
44 that this is not necessarily uptodate. This happens when 44 that this is not necessarily uptodate. This happens when
45 ntfs_attr_make_non_resident() is called in the ->truncate call path. 45 ntfs_attr_make_non_resident() is called in the ->truncate call path.
46 - Fix ntfs_attr_make_non_resident() to update the vfs inode i_blocks
47 which is zero for a resident attribute but should no longer be zero
48 once the attribute is non-resident as it then has real clusters
49 allocated.
46 50
472.1.24 - Lots of bug fixes and support more clean journal states. 512.1.24 - Lots of bug fixes and support more clean journal states.
48 52
diff --git a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c
index 380f70a5f2e1..8821e2d088b7 100644
--- a/fs/ntfs/attrib.c
+++ b/fs/ntfs/attrib.c
@@ -1719,7 +1719,9 @@ int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size)
1719 ffs(ni->itype.compressed.block_size) - 1; 1719 ffs(ni->itype.compressed.block_size) - 1;
1720 ni->itype.compressed.block_clusters = 1U << 1720 ni->itype.compressed.block_clusters = 1U <<
1721 a->data.non_resident.compression_unit; 1721 a->data.non_resident.compression_unit;
1722 } 1722 vi->i_blocks = ni->itype.compressed.size >> 9;
1723 } else
1724 vi->i_blocks = ni->allocated_size >> 9;
1723 write_unlock_irqrestore(&ni->size_lock, flags); 1725 write_unlock_irqrestore(&ni->size_lock, flags);
1724 /* 1726 /*
1725 * This needs to be last since the address space operations ->readpage 1727 * This needs to be last since the address space operations ->readpage