xfs: always take the iolock around xfs_setattr_size
authorChristoph Hellwig <hch@infradead.org>
Mon, 14 Oct 2013 14:09:35 +0000 (07:09 -0700)
committerBen Myers <bpm@sgi.com>
Mon, 21 Oct 2013 21:51:33 +0000 (16:51 -0500)
There is no reason to conditionally take the iolock inside xfs_setattr_size
when we can let the caller handle it unconditionally, which just incrases
the lock hold time for the case where it was previously taken internally
by a few instructions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>

No differences found