]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: pull up stack_switch check into xfs_bmapi_write
authorBrian Foster <bfoster@redhat.com>
Thu, 17 Jan 2013 18:11:29 +0000 (13:11 -0500)
committerBen Myers <bpm@sgi.com>
Thu, 17 Jan 2013 23:53:37 +0000 (17:53 -0600)
commit81233470a795649eedd6510b300236e4216aef97
tree875ad09d40b65530fe61c6dbf7b97c3c8b70f995
parentf8be64e3d30a1e796ab83f0ea81f810852b9f077
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 <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_bmap.c