]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[XFS] cleanup xfs_vn_mknod
authorChristoph Hellwig <hch@infradead.org>
Thu, 6 Mar 2008 02:44:35 +0000 (13:44 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 18 Apr 2008 01:38:53 +0000 (11:38 +1000)
commitdb0bb7baa1533db156d8af3ebeda1f0473a0197a
tree39247febd2c597ad58f754b0fd3ce35cd2c4e796
parent155cc6b784a959ed456fe46dca522e1d28b3b718
[XFS] cleanup xfs_vn_mknod

- use proper goto based unwinding instead of the current mess of
  multiple conditionals
- rename ip to inode because that's the normal convention for Linux
  inodes while ip is the convention for xfs_inodes
- remove unlikely checks for the default_acl - branches marked unlikely
  might lead to extreme branch bredictor slowdons if taken and for some
  workloads a default acl is quite common
- properly indent the switch statements
- remove xfs_has_fs_struct as nfsd has a fs_struct in any semi-recent
  kernel

SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:30529a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_iops.c