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)
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>

No differences found