From: Brian Foster Date: Thu, 17 Jan 2013 18:11:29 +0000 (-0500) Subject: xfs: pull up stack_switch check into xfs_bmapi_write X-Git-Tag: v3.8-rc6~11^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d26978dd866dbb3b3a9690f3655a5e735055de89;p=pandora-kernel.git xfs: pull up stack_switch check into xfs_bmapi_write The stack_switch check currently occurs in __xfs_bmapi_allocate, which means the stack switch only occurs when xfs_bmapi_allocate() is called in a loop. Pull the check up before the loop in xfs_bmapi_write() such that the first iteration of the loop has consistent behavior. Signed-off-by: Brian Foster Reviewed-by: Dave Chinner Signed-off-by: Ben Myers --- Reading git-diff-tree failed