]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix ioctl arg size (userland incompatible change!)
authorChris Mason <chris.mason@oracle.com>
Fri, 16 Jan 2009 16:59:08 +0000 (11:59 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 16 Jan 2009 16:59:08 +0000 (11:59 -0500)
commitccca8cc561235abe139ab4440fe3e55f4f4a3699
tree2f7b32f7a554e03e012586ae429ea3bd2794fcb6
parenta04cf42bd8e93f616aac59792484ae786a27c2c0
Btrfs: fix ioctl arg size (userland incompatible change!)

The structure used to send device in btrfs ioctl calls was not
properly aligned, and so 32 bit ioctls would not work properly on
64 bit kernels.

We could fix this with compat ioctls, but we're just one byte away
and it doesn't make sense at this stage to carry about the compat ioctls
forever at this stage in the project.

This patch brings the ioctl arg up to an evenly aligned 4k.

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