diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-07-21 17:19:42 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:47:55 -0400 |
commit | addacc7d6f0f0bcce12adf9fe9e6455e1dfd74da (patch) | |
tree | 8743c3586ebc9691fe45b2783e13500ad33b584d /fs/ext2/xattr.c | |
parent | 3889717d2851bf38015c0b291026c07c02264623 (diff) |
Take dirtying the inode to callers of ext2_free_blocks()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext2/xattr.c')
-rw-r--r-- | fs/ext2/xattr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index 0fa24e814d8a..25ff041058a7 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c | |||
@@ -674,6 +674,7 @@ ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh, | |||
674 | new_bh = sb_getblk(sb, block); | 674 | new_bh = sb_getblk(sb, block); |
675 | if (!new_bh) { | 675 | if (!new_bh) { |
676 | ext2_free_blocks(inode, block, 1); | 676 | ext2_free_blocks(inode, block, 1); |
677 | mark_inode_dirty(inode); | ||
677 | error = -EIO; | 678 | error = -EIO; |
678 | goto cleanup; | 679 | goto cleanup; |
679 | } | 680 | } |
@@ -729,6 +730,7 @@ ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh, | |||
729 | mb_cache_entry_free(ce); | 730 | mb_cache_entry_free(ce); |
730 | ea_bdebug(old_bh, "freeing"); | 731 | ea_bdebug(old_bh, "freeing"); |
731 | ext2_free_blocks(inode, old_bh->b_blocknr, 1); | 732 | ext2_free_blocks(inode, old_bh->b_blocknr, 1); |
733 | mark_inode_dirty(inode); | ||
732 | /* We let our caller release old_bh, so we | 734 | /* We let our caller release old_bh, so we |
733 | * need to duplicate the buffer before. */ | 735 | * need to duplicate the buffer before. */ |
734 | get_bh(old_bh); | 736 | get_bh(old_bh); |
@@ -789,6 +791,7 @@ ext2_xattr_delete_inode(struct inode *inode) | |||
789 | if (ce) | 791 | if (ce) |
790 | mb_cache_entry_free(ce); | 792 | mb_cache_entry_free(ce); |
791 | ext2_free_blocks(inode, EXT2_I(inode)->i_file_acl, 1); | 793 | ext2_free_blocks(inode, EXT2_I(inode)->i_file_acl, 1); |
794 | mark_inode_dirty(inode); | ||
792 | get_bh(bh); | 795 | get_bh(bh); |
793 | bforget(bh); | 796 | bforget(bh); |
794 | unlock_buffer(bh); | 797 | unlock_buffer(bh); |