Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175294
b: refs/heads/master
c: d965736
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sandeen authored and Jan Kara committed Dec 10, 2009
1 parent 96610d1 commit e80878e
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: ad888a1f07a72fc7d19286b4ce5c154172a06eed
refs/heads/master: d965736b8cb42ae51ba9c3f13488035a98d025c6
7 changes: 4 additions & 3 deletions trunk/fs/ext3/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,10 @@ ext3_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index,
if (error)
goto cleanup;

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

if (EXT3_I(inode)->i_state & EXT3_STATE_NEW) {
struct ext3_inode *raw_inode = ext3_raw_inode(&is.iloc);
memset(raw_inode, 0, EXT3_SB(inode->i_sb)->s_inode_size);
Expand All @@ -985,9 +989,6 @@ ext3_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index,
if (flags & XATTR_CREATE)
goto cleanup;
}
error = ext3_journal_get_write_access(handle, is.iloc.bh);
if (error)
goto cleanup;
if (!value) {
if (!is.s.not_found)
error = ext3_xattr_ibody_set(handle, inode, &i, &is);
Expand Down

0 comments on commit e80878e

Please sign in to comment.