|
@@ -65,19 +65,6 @@ struct wb_writeback_work {
|
|
*/
|
|
*/
|
|
unsigned int dirtytime_expire_interval = 12 * 60 * 60;
|
|
unsigned int dirtytime_expire_interval = 12 * 60 * 60;
|
|
|
|
|
|
-/**
|
|
|
|
- * writeback_in_progress - determine whether there is writeback in progress
|
|
|
|
- * @bdi: the device's backing_dev_info structure.
|
|
|
|
- *
|
|
|
|
- * Determine whether there is writeback waiting to be handled against a
|
|
|
|
- * backing device.
|
|
|
|
- */
|
|
|
|
-int writeback_in_progress(struct backing_dev_info *bdi)
|
|
|
|
-{
|
|
|
|
- return test_bit(WB_writeback_running, &bdi->wb.state);
|
|
|
|
-}
|
|
|
|
-EXPORT_SYMBOL(writeback_in_progress);
|
|
|
|
-
|
|
|
|
static inline struct inode *wb_inode(struct list_head *head)
|
|
static inline struct inode *wb_inode(struct list_head *head)
|
|
{
|
|
{
|
|
return list_entry(head, struct inode, i_wb_list);
|
|
return list_entry(head, struct inode, i_wb_list);
|
|
@@ -1532,7 +1519,7 @@ int try_to_writeback_inodes_sb_nr(struct super_block *sb,
|
|
unsigned long nr,
|
|
unsigned long nr,
|
|
enum wb_reason reason)
|
|
enum wb_reason reason)
|
|
{
|
|
{
|
|
- if (writeback_in_progress(sb->s_bdi))
|
|
|
|
|
|
+ if (writeback_in_progress(&sb->s_bdi->wb))
|
|
return 1;
|
|
return 1;
|
|
|
|
|
|
if (!down_read_trylock(&sb->s_umount))
|
|
if (!down_read_trylock(&sb->s_umount))
|