summaryrefslogtreecommitdiff
path: root/fs/exofs
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-06-27 17:18:41 -0400
committerChris Mason <chris.mason@fusionio.com>2012-07-02 15:39:18 -0400
commit7fd1a3f73f3743b4ffd520effe288a70b0ec47c9 (patch)
tree176c81896d74f9662d6ebc91b902804921551db7 /fs/exofs
parentbdb7d303b33c1648514c9f9461d7513a4c05ce48 (diff)
downloadlinux-3.10-7fd1a3f73f3743b4ffd520effe288a70b0ec47c9.tar.gz
linux-3.10-7fd1a3f73f3743b4ffd520effe288a70b0ec47c9.tar.bz2
linux-3.10-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 'fs/exofs')
0 files changed, 0 insertions, 0 deletions