Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297867
b: refs/heads/master
c: 0417341
h: refs/heads/master
i:
  297865: e8b5c05
  297863: 1119766
v: v3
  • Loading branch information
Jeff Mahoney authored and David Sterba committed Mar 22, 2012
1 parent 0cc3693 commit ee9c6f1
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: b45a9d8b48e5ce534bd222007c43cbf374544f0b
refs/heads/master: 0417341e6bd93e2a2ceac0e57409706803b335e5
7 changes: 4 additions & 3 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,13 +1479,14 @@ static int btrfs_submit_bio_hook(struct inode *inode, int rw, struct bio *bio,
struct btrfs_root *root = BTRFS_I(inode)->root;
int ret = 0;
int skip_sum;
int metadata = 0;

skip_sum = BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM;

if (btrfs_is_free_space_inode(root, inode))
ret = btrfs_bio_wq_end_io(root->fs_info, bio, 2);
else
ret = btrfs_bio_wq_end_io(root->fs_info, bio, 0);
metadata = 2;

ret = btrfs_bio_wq_end_io(root->fs_info, bio, metadata);
BUG_ON(ret);

if (!(rw & REQ_WRITE)) {
Expand Down

0 comments on commit ee9c6f1

Please sign in to comment.