Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243161
b: refs/heads/master
c: c0da7aa
h: refs/heads/master
i:
  243159: ae74f7d
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Mar 25, 2011
1 parent 86b2805 commit 98a618f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98bc3149fad639c8f50c7110b961a2a2fe085eed
refs/heads/master: c0da7aa1a2d8fcafe271a7077599253c8ed94bb2
8 changes: 8 additions & 0 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -5744,6 +5744,10 @@ static void btrfs_endio_direct_read(struct bio *bio, int err)

kfree(dip->csums);
kfree(dip);

/* If we had a csum failure make sure to clear the uptodate flag */
if (err)
clear_bit(BIO_UPTODATE, &bio->bi_flags);
dio_end_io(bio, err);
}

Expand Down Expand Up @@ -5845,6 +5849,10 @@ static void btrfs_endio_direct_write(struct bio *bio, int err)

kfree(dip->csums);
kfree(dip);

/* If we had an error make sure to clear the uptodate flag */
if (err)
clear_bit(BIO_UPTODATE, &bio->bi_flags);
dio_end_io(bio, err);
}

Expand Down

0 comments on commit 98a618f

Please sign in to comment.