diff options
| author | Josef Bacik <[email protected]> | 2012-06-27 21:18:41 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2012-07-02 19:39:18 +0000 |
| commit | 7fd1a3f73f3743b4ffd520effe288a70b0ec47c9 (patch) | |
| tree | 176c81896d74f9662d6ebc91b902804921551db7 /tools/perf/util/trace-event-scripting.c | |
| parent | Btrfs: fix tree log remove space corner case (diff) | |
| download | kernel-7fd1a3f73f3743b4ffd520effe288a70b0ec47c9.tar.gz kernel-7fd1a3f73f3743b4ffd520effe288a70b0ec47c9.zip | |
Btrfs: hold a ref on the inode during writepages
We can race with unlink and not actually be able to do our igrab in
btrfs_add_ordered_extent. This will result in all sorts of problems.
Instead of doing the complicated work to try and handle returning an error
properly from btrfs_add_ordered_extent, just hold a ref to the inode during
writepages. If we cannot grab a ref we know we're freeing this inode anyway
and can just drop the dirty pages on the floor, because screw them we're
going to invalidate them anyway. Thanks,
Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
