]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: check the return value of filemap_write_and_wait in the space cache
authorJosef Bacik <josef@redhat.com>
Wed, 5 Oct 2011 20:33:53 +0000 (16:33 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:29 +0000 (21:20 -0500)
commitfe42b1f5940dfccf3de059a2be4deff62832ee2b
treefeb2e45afea858809b513f915ad3273352404260
parentbaf7a99689ff0a5a81a1ad5dd52b9ae4d81187cc
Btrfs: check the return value of filemap_write_and_wait in the space cache

We need to check the return value of filemap_write_and_wait in the space cache
writeout code.  Also don't set the inode's generation until we're sure nothing
else is going to fail.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit 549b4fdb8f3c0708bbc0ee12ff955cd206c0f60c)
fs/btrfs/free-space-cache.c