]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit666c562daa70b36b57677c9f022867c38e3383e6
tree0fc0be615e657ed385835b56741c3a62c2c76fff
parent5af48be66d91145fa2dd5cc8ebadce2a421e2088
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