summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/mc13xxx.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-06-27 23:18:41 +0200
committerChris Mason <chris.mason@fusionio.com>2012-07-02 21:39:18 +0200
commit7fd1a3f73f3743b4ffd520effe288a70b0ec47c9 (patch)
tree176c81896d74f9662d6ebc91b902804921551db7 /drivers/regulator/mc13xxx.h
parentBtrfs: fix tree log remove space corner case (diff)
downloadlinux-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