diff options
| -rw-r--r-- | fs/libfs.c | 2 | ||||
| -rw-r--r-- | include/linux/fs.h | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index 35fc6e74cd88..916da8c4158b 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
| @@ -369,8 +369,6 @@ int simple_setattr(struct dentry *dentry, struct iattr *iattr) | |||
| 369 | struct inode *inode = dentry->d_inode; | 369 | struct inode *inode = dentry->d_inode; |
| 370 | int error; | 370 | int error; |
| 371 | 371 | ||
| 372 | WARN_ON_ONCE(inode->i_op->truncate); | ||
| 373 | |||
| 374 | error = inode_change_ok(inode, iattr); | 372 | error = inode_change_ok(inode, iattr); |
| 375 | if (error) | 373 | if (error) |
| 376 | return error; | 374 | return error; |
diff --git a/include/linux/fs.h b/include/linux/fs.h index a823d4be38e7..a0c5ba57ffc5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1565,7 +1565,6 @@ struct inode_operations { | |||
| 1565 | int (*mknod) (struct inode *,struct dentry *,umode_t,dev_t); | 1565 | int (*mknod) (struct inode *,struct dentry *,umode_t,dev_t); |
| 1566 | int (*rename) (struct inode *, struct dentry *, | 1566 | int (*rename) (struct inode *, struct dentry *, |
| 1567 | struct inode *, struct dentry *); | 1567 | struct inode *, struct dentry *); |
| 1568 | void (*truncate) (struct inode *); | ||
| 1569 | int (*setattr) (struct dentry *, struct iattr *); | 1568 | int (*setattr) (struct dentry *, struct iattr *); |
| 1570 | int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *); | 1569 | int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *); |
| 1571 | int (*setxattr) (struct dentry *, const char *,const void *,size_t,int); | 1570 | int (*setxattr) (struct dentry *, const char *,const void *,size_t,int); |
