xfs
[Top] [All Lists]

Re: [PATCH 5/4] simplify xfs_create/mknod/symlink prototype

To: Christoph Hellwig <hch@xxxxxx>
Subject: Re: [PATCH 5/4] simplify xfs_create/mknod/symlink prototype
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Fri, 14 Sep 2007 13:31:00 -0500
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20070914163041.GG7110@xxxxxx>
References: <20070914163041.GG7110@xxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (X11/20070530)
Christoph Hellwig wrote:
> (sorry, go the patch numbering one off)
> 
> Simplify the prototype for xfs_create/xfs_mkdir/xfs_symlink by not
> passing down a bhv_vattr_t that just hogs stack space.  Instead pass
> down the mode in a mode_t and in case of xfs_crate the rdev as a scalar
> type aswell.

With this whole patch series, I see these stack reductions on my x86
box, nice!

--- before      2007-09-14 06:41:25.000000000 -0500
+++ after       2007-09-14 06:42:25.000000000 -0500
-vn_revalidate [xfs]: 100
+vn_revalidate [xfs]: 4
-xfs_bmbt_delrec [xfs]: 212
+xfs_bmbt_delrec [xfs]: 204
-xfs_free_file_space [xfs]: 196
+xfs_free_file_space [xfs]: 188
+xfs_ioc_fsgetxattr [xfs]: 28
-xfs_ioctl [xfs]: 64
+xfs_ioctl [xfs]: 68
-xfs_symlink [xfs]: 240
+xfs_symlink [xfs]: 256
-xfs_validate_fields [xfs]: 4
+xfs_validate_fields [xfs]: 8
-xfs_vn_getattr [xfs]: 104
+xfs_vn_getattr [xfs]: 12
-xfs_vn_link [xfs]: 108
+xfs_vn_link [xfs]: 8
-xfs_vn_mknod [xfs]: 128
+xfs_vn_mknod [xfs]: 32
-xfs_vn_rename [xfs]: 108
-xfs_vn_rmdir [xfs]: 104
+xfs_vn_rename [xfs]: 8
-xfs_vn_symlink [xfs]: 120
+xfs_vn_symlink [xfs]: 20
-xfs_vn_unlink [xfs]: 104


<Prev in Thread] Current Thread [Next in Thread>