xfs: use mnt_want_write in compat_attrmulti ioctl
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Jan 2009 01:03:03 +0000 (02:03 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 19 Jan 2009 01:03:03 +0000 (02:03 +0100)
commit178eae342b34185ef7b11e62df2f74ba45daa56e
tree7984a561c8d8ecab2fab43621ef8b70486820a59
parentd296d30a9948e895bff005d92c38309e8bd30975
xfs: use mnt_want_write in compat_attrmulti ioctl

The compat version of the attrmulti ioctl needs to ask for and then
later release write access to the mount just like the native version,
otherwise we could potentially write to read-only mounts.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
fs/xfs/linux-2.6/xfs_ioctl32.c