Don't dirty the victim in ext2_xattr_delete_inode()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 21 Jul 2010 21:22:47 +0000 (01:22 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Aug 2010 20:47:56 +0000 (16:47 -0400)
... it's beyond fs-writeback reach already - writeback won't
be started at that point.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ext2/xattr.c

index 25ff041058a74147bcd2ea12ff784700bd19132c..5ab87e6edffce2c84c03f3a649b35ae990a19b82 100644 (file)
@@ -791,7 +791,6 @@ ext2_xattr_delete_inode(struct inode *inode)
                if (ce)
                        mb_cache_entry_free(ce);
                ext2_free_blocks(inode, EXT2_I(inode)->i_file_acl, 1);
-               mark_inode_dirty(inode);
                get_bh(bh);
                bforget(bh);
                unlock_buffer(bh);
@@ -806,7 +805,6 @@ ext2_xattr_delete_inode(struct inode *inode)
                if (IS_SYNC(inode))
                        sync_dirty_buffer(bh);
                dquot_free_block_nodirty(inode, 1);
-               mark_inode_dirty(inode);
        }
        EXT2_I(inode)->i_file_acl = 0;