diff options
Diffstat (limited to 'fs/ext2/xattr.c')
| -rw-r--r-- | fs/ext2/xattr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index 0099462d4271..a2ca3107d475 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c | |||
| @@ -325,7 +325,7 @@ cleanup: | |||
| 325 | /* | 325 | /* |
| 326 | * Inode operation listxattr() | 326 | * Inode operation listxattr() |
| 327 | * | 327 | * |
| 328 | * dentry->d_inode->i_sem: don't care | 328 | * dentry->d_inode->i_mutex: don't care |
| 329 | */ | 329 | */ |
| 330 | ssize_t | 330 | ssize_t |
| 331 | ext2_listxattr(struct dentry *dentry, char *buffer, size_t size) | 331 | ext2_listxattr(struct dentry *dentry, char *buffer, size_t size) |
| @@ -389,10 +389,6 @@ ext2_xattr_set(struct inode *inode, int name_index, const char *name, | |||
| 389 | ea_idebug(inode, "name=%d.%s, value=%p, value_len=%ld", | 389 | ea_idebug(inode, "name=%d.%s, value=%p, value_len=%ld", |
| 390 | name_index, name, value, (long)value_len); | 390 | name_index, name, value, (long)value_len); |
| 391 | 391 | ||
| 392 | if (IS_RDONLY(inode)) | ||
| 393 | return -EROFS; | ||
| 394 | if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) | ||
| 395 | return -EPERM; | ||
| 396 | if (value == NULL) | 392 | if (value == NULL) |
| 397 | value_len = 0; | 393 | value_len = 0; |
| 398 | if (name == NULL) | 394 | if (name == NULL) |
