aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/attrib.h
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-10-04 14:48:20 +0100
committerAnton Altaparmakov <aia21@cantab.net>2005-10-04 14:48:20 +0100
commit8925d4f0d3479b9c5ed7e49acc648beccca95f21 (patch)
treefc740f0fbc17edc8b855c27c02d074679a0f0f03 /fs/ntfs/attrib.h
parentNTFS: - Change ntfs_cluster_alloc() to take an extra boolean parameter (diff)
downloadlinux-dev-8925d4f0d3479b9c5ed7e49acc648beccca95f21.tar.xz
linux-dev-8925d4f0d3479b9c5ed7e49acc648beccca95f21.zip
NTFS: Change ntfs_attr_make_non_resident to take the attribute value size
as an extra parameter. This is needed since we need to know the size before we can map the mft record and our callers always know it. The 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. Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/attrib.h')
-rw-r--r--fs/ntfs/attrib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs/attrib.h b/fs/ntfs/attrib.h
index 62f76258d9c3..a959af9cef12 100644
--- a/fs/ntfs/attrib.h
+++ b/fs/ntfs/attrib.h
@@ -103,7 +103,7 @@ extern int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size);
extern int ntfs_resident_attr_value_resize(MFT_RECORD *m, ATTR_RECORD *a,
const u32 new_size);
-extern int ntfs_attr_make_non_resident(ntfs_inode *ni);
+extern int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size);
extern int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt,
const u8 val);