diff options
Diffstat (limited to 'fs/ext3/xattr.c')
| -rw-r--r-- | fs/ext3/xattr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index 430de9f63be3..e8d60bf6b7df 100644 --- a/fs/ext3/xattr.c +++ b/fs/ext3/xattr.c | |||
| @@ -140,7 +140,7 @@ ext3_xattr_handler(int name_index) | |||
| 140 | /* | 140 | /* |
| 141 | * Inode operation listxattr() | 141 | * Inode operation listxattr() |
| 142 | * | 142 | * |
| 143 | * dentry->d_inode->i_sem: don't care | 143 | * dentry->d_inode->i_mutex: don't care |
| 144 | */ | 144 | */ |
| 145 | ssize_t | 145 | ssize_t |
| 146 | ext3_listxattr(struct dentry *dentry, char *buffer, size_t size) | 146 | ext3_listxattr(struct dentry *dentry, char *buffer, size_t size) |
| @@ -946,10 +946,6 @@ ext3_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index, | |||
| 946 | }; | 946 | }; |
| 947 | int error; | 947 | int error; |
| 948 | 948 | ||
| 949 | if (IS_RDONLY(inode)) | ||
| 950 | return -EROFS; | ||
| 951 | if (IS_IMMUTABLE(inode) || IS_APPEND(inode)) | ||
| 952 | return -EPERM; | ||
| 953 | if (!name) | 949 | if (!name) |
| 954 | return -EINVAL; | 950 | return -EINVAL; |
| 955 | if (strlen(name) > 255) | 951 | if (strlen(name) > 255) |
