xfs: allow log ticket allocation to take allocation flags
authorDave Chinner <dchinner@redhat.com>
Fri, 7 May 2010 01:04:17 +0000 (11:04 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 24 May 2010 15:33:17 +0000 (10:33 -0500)
commit3383ca5780f88bb2c119174045ed77d5ece08072
tree582aaa878f90af0e48941c3fcadbafe4c1a695f4
parent524ee36fa4661d745a467c3bba0e1034fd1f4b77
xfs: allow log ticket allocation to take allocation flags

Delayed logging currently requires ticket allocation to succeed, so
we need to be able to sleep on allocation. It also should not allow
memory allocation to recurse into the filesystem. hence we need to
pass allocation flags directing the type of allocation the caller
requires.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_log.c