journal_try_to_free_buffers

Name

journal_try_to_free_buffers --  try to free page buffers.

Synopsis

int journal_try_to_free_buffers (journal_t * journal, struct page * page, int gfp_mask);

Arguments

journal

journal for operation

page

to try and free

gfp_mask

'IO' mode for try_to_free_buffers

Description

For all the buffers on this page, if they are fully written out ordered data, move them onto BUF_CLEAN so try_to_free_buffers can reap them.

This function returns non-zero if we wish try_to_free_buffers to be called. We do this if the page is releasable by try_to_free_buffers. We also do it if the page has locked or dirty buffers and the caller wants us to perform sync or async writeout.