Btrfs: stop using vfs_read in send
authorJosef Bacik <jbacik@fusionio.com>
Fri, 25 Oct 2013 15:36:01 +0000 (11:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:49:09 +0000 (07:49 -0800)
commit222ae8bfd4c3796335d2aa1aa6a4dbeccb497b00
treed42203dd77fe6850df16daf2722698d2ef82c8b7
parent7673c22871fdd914cdb61c9c1cd273ad59f614af
Btrfs: stop using vfs_read in send

commit ed2590953bd06b892f0411fc94e19175d32f197a upstream.

Apparently we don't actually close the files until we return to userspace, so
stop using vfs_read in send.  This is actually better for us since we can avoid
all the extra logic of holding the file we're sending open and making sure to
clean it up.  This will fix people who have been hitting too many files open
errors when trying to send.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/send.c