]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fold xfs_attr_get_int into xfs_attr_get
authorChristoph Hellwig <hch@lst.de>
Tue, 13 May 2014 06:34:24 +0000 (16:34 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 13 May 2014 06:34:24 +0000 (16:34 +1000)
commitd1232338a707024d3d0e816dc53aaa0b36d8ff35
treed231a7de70d6aa9fbbf5e9a4eb5c19e1d6902250
parent8e3265de699d974e3a33278d6116b216746a4aad
xfs: fold xfs_attr_get_int into xfs_attr_get

This allows doing an unlocked check if an attr for is present at all and
slightly reduce the lock hold time if we actually do an attr get.

Plus various minor style fixes to the new xfs_attr_get.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_attr.c