Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174373
b: refs/heads/master
c: 86ebfd0
h: refs/heads/master
i:
  174371: 0f633be
v: v3
  • Loading branch information
Eric Sandeen authored and Theodore Ts'o committed Nov 15, 2009
1 parent c855796 commit 72fe668
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30c6e07a92ea4cb87160d32ffa9bce172576ae4c
refs/heads/master: 86ebfd08a1930ccedb8eac0aeb1ed4b8b6a41dbc
7 changes: 4 additions & 3 deletions trunk/fs/ext4/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,10 @@ ext4_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index,
if (error)
goto cleanup;

error = ext4_journal_get_write_access(handle, is.iloc.bh);
if (error)
goto cleanup;

if (EXT4_I(inode)->i_state & EXT4_STATE_NEW) {
struct ext4_inode *raw_inode = ext4_raw_inode(&is.iloc);
memset(raw_inode, 0, EXT4_SB(inode->i_sb)->s_inode_size);
Expand All @@ -1013,9 +1017,6 @@ ext4_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index,
if (flags & XATTR_CREATE)
goto cleanup;
}
error = ext4_journal_get_write_access(handle, is.iloc.bh);
if (error)
goto cleanup;
if (!value) {
if (!is.s.not_found)
error = ext4_xattr_ibody_set(handle, inode, &i, &is);
Expand Down

0 comments on commit 72fe668

Please sign in to comment.