Skip to contentSkip to conversation

ext3: Convert filesystem to the new truncate calling sequence

PATCH New Jan Kara 1 participant 1 message Sep 3, 2009

lore
Share & tools
lore

Jan Kara

author
#0 lore raw

PATCH 1/1 ext3: Convert filesystem to the new truncate calling sequence

---
 fs/ext3/file.c  |    2 +-
 fs/ext3/inode.c |   68 +++++++++++++++++++++++++++++++++---------------------
 2 files changed, 42 insertions(+), 28 deletions(-)

Nick, here is a minimalistic patch converting ext3 to the new truncate
sequence. It has survived some basic testing so feel free to add it to your patch series.

fs/ext3/file.c +1 -1
index 5b49704..299d3c1 100644
@@ -129,7 +129,7 @@ const struct file_operations ext3_file_operations = {
 };
 
 const struct inode_operations ext3_file_inode_operations = {
-	.truncate	= ext3_truncate,
+	.new_truncate	= 1,
 	.setattr	= ext3_setattr,
 #ifdef CONFIG_EXT3_FS_XATTR
 	.setxattr	= generic_setxattr,
fs/ext3/inode.c +41 -27

91 lines not on this page · raw message

Signature · 1 line
1.6.0.2