Hi David, This patch reduces xfs_page_state_convert() stack usage by 16 bytes by eliminating some local variables, and reducing the size of scope for other locals. Compile tested only. Signed-off-by: Denys Vlasenko P.S. xfs_page_state_convert() carries the following comment: * Calling this without startio set means we are being asked to make a dirty * page ready for freeing it's buffers. When called with startio set then * we are coming from writepage. which leads to the following proposal: reimplement it as two functions, one which work as if startio parameter == 0 and the other as if startio == 1. This will result in a bit of code duplication, but reduces stack usage on writepage path and allows for these two functions to have more descriptive names. (Presently the meaning of this function needs to be explained in that comment -> function name is not descriptive enough, because it does different things depending on startio value). Do you like this idea? -- vda