diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/debugfs/file.c | 2 | ||||
| -rw-r--r-- | fs/sysfs/inode.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index fddffe4851f5..159a5efd6a8a 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | * 2 as published by the Free Software Foundation. | 9 | * 2 as published by the Free Software Foundation. |
| 10 | * | 10 | * |
| 11 | * debugfs is for people to use instead of /proc or /sys. | 11 | * debugfs is for people to use instead of /proc or /sys. |
| 12 | * See Documentation/DocBook/kernel-api for more details. | 12 | * See Documentation/DocBook/filesystems for more details. |
| 13 | * | 13 | * |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index f8b82e73b3bf..eb53c632f856 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
| @@ -59,6 +59,8 @@ int sysfs_setattr(struct dentry * dentry, struct iattr * iattr) | |||
| 59 | if (error) | 59 | if (error) |
| 60 | return error; | 60 | return error; |
| 61 | 61 | ||
| 62 | iattr->ia_valid &= ~ATTR_SIZE; /* ignore size changes */ | ||
| 63 | |||
| 62 | error = inode_setattr(inode, iattr); | 64 | error = inode_setattr(inode, iattr); |
| 63 | if (error) | 65 | if (error) |
| 64 | return error; | 66 | return error; |
