[PATCH] xfs: reduce stack usage in xfs_bmap_btalloc()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Chinner <dgc@...>
Cc: <xfs@...>, Eric Sandeen <sandeen@...>, Adrian Bunk <bunk@...>, <linux-kernel@...>
Date: Saturday, April 26, 2008 - 10:51 am

Hi David,

This patch reduces xfs_bmap_btalloc() stack usage by 50 bytes
by moving part of its body into a helper function.

This results in some variables not taking stack space in
xfs_bmap_btalloc() anymore.

The helper itself does not call anything stack-deep.
Stack-deep call to xfs_alloc_vextent() happen
in xfs_bmap_btalloc(), as before.

Compile tested only.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
--
vda
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] xfs: reduce stack usage in xfs_bmap_btalloc(), Denys Vlasenko, (Sat Apr 26, 10:51 am)
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc(), David Chinner, (Sun Apr 27, 7:40 pm)
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc(), David Chinner, (Sun Apr 27, 11:32 pm)
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc(), Denys Vlasenko, (Sun Apr 27, 7:57 pm)
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc(), Christoph Hellwig, (Sat Apr 26, 4:03 pm)
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc(), Denys Vlasenko, (Sat Apr 26, 7:45 pm)
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc(), Denys Vlasenko, (Sat Apr 26, 7:05 pm)