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)
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

Simple merge