xfs: Fix open flag handling in open_by_handle code
authorDave Chinner <dchinner@redhat.com>
Thu, 22 Mar 2012 05:15:06 +0000 (05:15 +0000)
committerBen Myers <bpm@sgi.com>
Thu, 22 Mar 2012 20:56:52 +0000 (15:56 -0500)
commit1a1d772433d42aaff7315b3468fef5951604f5c6
tree0f2b7e5ccf4e0a99fde158d95d1225ed81a2b34e
parent5575acc7807595687288b3bbac15103f2a5462e1
xfs: Fix open flag handling in open_by_handle code

Sparse identified some unsafe handling of open flags in the xfs open
by handle ioctl code. Update the code to use the correct access
macros to ensure that we handle the open flags correctly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_ioctl.c