Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274642
b: refs/heads/master
c: 549b4fd
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik committed Oct 19, 2011
1 parent 4e0722b commit 20a1e28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: a67509c30079f4c5025fb19ea443fb2906c3a85e
refs/heads/master: 549b4fdb8f3c0708bbc0ee12ff955cd206c0f60c
7 changes: 5 additions & 2 deletions trunk/fs/btrfs/free-space-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,10 @@ int __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode,
if (ret)
goto out;

BTRFS_I(inode)->generation = trans->transid;

filemap_write_and_wait(inode->i_mapping);
ret = filemap_write_and_wait(inode->i_mapping);
if (ret)
goto out;

key.objectid = BTRFS_FREE_SPACE_OBJECTID;
key.offset = offset;
Expand Down Expand Up @@ -884,6 +885,8 @@ int __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode,
goto out;
}
}

BTRFS_I(inode)->generation = trans->transid;
header = btrfs_item_ptr(leaf, path->slots[0],
struct btrfs_free_space_header);
btrfs_set_free_space_entries(leaf, header, entries);
Expand Down

0 comments on commit 20a1e28

Please sign in to comment.