diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index f8b82e73b3bf0ee8a7d9403d6ffdf06ad15f5411..eb53c632f8564a100d92e4670b8c6764776a3514 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c @@ -59,6 +59,8 @@ int sysfs_setattr(struct dentry * dentry, struct iattr * iattr) if (error) return error; + iattr->ia_valid &= ~ATTR_SIZE; /* ignore size changes */ + error = inode_setattr(inode, iattr); if (error) return error;