Btrfs: buffer results in the space_info ioctl
authorChris Mason <chris.mason@oracle.com>
Tue, 16 Mar 2010 19:40:10 +0000 (15:40 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 16 Mar 2010 19:40:10 +0000 (15:40 -0400)
commit7fde62bffb576d384ea49a3aed3403d5609ee5bc
tree0fc0be615e657ed385835b56741c3a62c2c76fff
parentce769a2904bf5a9110ef534a7702397e38e2b3e9
Btrfs: buffer results in the space_info ioctl

The space_info ioctl was using copy_to_user inside rcu_read_lock.  This
commit changes things to copy into a buffer first and then dump the
result down to userland.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c