diff options
author | Josef Bacik <jbacik@fusionio.com> | 2012-06-27 23:18:41 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-07-02 21:39:18 +0200 |
commit | 7fd1a3f73f3743b4ffd520effe288a70b0ec47c9 (patch) | |
tree | 176c81896d74f9662d6ebc91b902804921551db7 /drivers/regulator/mc13xxx.h | |
parent | Btrfs: fix tree log remove space corner case (diff) | |
download | linux-7fd1a3f73f3743b4ffd520effe288a70b0ec47c9.tar.xz linux-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 <jbacik@fusionio.com>
Diffstat (limited to 'drivers/regulator/mc13xxx.h')
0 files changed, 0 insertions, 0 deletions