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)
committerLachlan McIlroy <lachlan@sgi.com>
Mon, 19 Jan 2009 03:44:30 +0000 (14:44 +1100)
commit62e194ecdaf8a1935991c1f8704886328d96a391
tree730e1c02ece82443f3dbe1314b88763bee4764d2
parentab596ad8972f314ace538799734c7e1bdd1da2ff
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