Name

try_to_writeback_inodes_sb_nr — try to start writeback if none underway

Synopsis

bool try_to_writeback_inodes_sb_nr (struct super_block * sb,
 unsigned long nr,
 enum wb_reason reason);
 

Arguments

struct super_block * sb

the superblock

unsigned long nr

the number of pages to write

enum wb_reason reason

the reason of writeback

Description

Invoke writeback_inodes_sb_nr if no writeback is currently underway. Returns 1 if writeback was started, 0 if not.