]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commitb87d022c275bce66553a27b68790e7c91927875f
treed231a7de70d6aa9fbbf5e9a4eb5c19e1d6902250
parentc5b4ac39a4cb6a9a79025106a471f0738b3cb525
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