https://github.com/torvalds/linux
Revision 7fd1a3f73f3743b4ffd520effe288a70b0ec47c9 authored by Josef Bacik on 27 June 2012, 21:18:41 UTC, committed by Chris Mason on 02 July 2012, 19:39:18 UTC
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>
1 parent bdb7d30
History
Tip revision: 7fd1a3f73f3743b4ffd520effe288a70b0ec47c9 authored by Josef Bacik on 27 June 2012, 21:18:41 UTC
Btrfs: hold a ref on the inode during writepages
Tip revision: 7fd1a3f
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 205.4 KB
Makefile -rw-r--r-- 52.3 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top