Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178912
b: refs/heads/master
c: 31370f6
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed Jan 7, 2010
1 parent 7c0ccbf commit c59b4ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0baec1b63632f25ea8101b76edaca0accc061ec
refs/heads/master: 31370f62baa1460b785cee9944bdcaf63d19e567
4 changes: 4 additions & 0 deletions trunk/fs/reiserfs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,12 @@ reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *th,
.ia_size = buffer_size,
.ia_valid = ATTR_SIZE | ATTR_CTIME,
};

reiserfs_write_unlock(inode->i_sb);
mutex_lock_nested(&dentry->d_inode->i_mutex, I_MUTEX_XATTR);
down_write(&dentry->d_inode->i_alloc_sem);
reiserfs_write_lock(inode->i_sb);

err = reiserfs_setattr(dentry, &newattrs);
up_write(&dentry->d_inode->i_alloc_sem);
mutex_unlock(&dentry->d_inode->i_mutex);
Expand Down

0 comments on commit c59b4ba

Please sign in to comment.