Skip to contentSkip to conversation

vfs: drop vmtruncate

PATCH In review Marco Stornelli 1 participant 1 message Dec 15, 2012 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 19/21 vfs: drop vmtruncate

Removed vmtruncate

---
 fs/libfs.c         |    2 --
 include/linux/fs.h |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)
fs/libfs.c +0 -2
index 7cc37ca..c8fe267 100644
@@ -369,8 +369,6 @@ int simple_setattr(struct dentry *dentry, struct iattr *iattr)
 	struct inode *inode = dentry->d_inode;
 	int error;
 
-	WARN_ON_ONCE(inode->i_op->truncate);
-
 	error = inode_change_ok(inode, iattr);
 	if (error)
 		return error;
include/linux/fs.h +0 -1
index 408fb1e..47e2b36 100644
@@ -1563,7 +1563,6 @@ struct inode_operations {
 	int (*mknod) (struct inode *,struct dentry *,umode_t,dev_t);
 	int (*rename) (struct inode *, struct dentry *,
 			struct inode *, struct dentry *);
-	void (*truncate) (struct inode *);
 	int (*setattr) (struct dentry *, struct iattr *);
 	int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
 	int (*setxattr) (struct dentry *, const char *,const void *,size_t,int);
Signature · 1 line
1.7.3.4