mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
writeback: remove the always false bdi_cap_writeback_dirty() test
This is dead code because no bdi flush thread will be started for !bdi_cap_writeback_dirty bdi. Signed-off-by: Wu Fengguang <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Trond Myklebust <[email protected]> Cc: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
bf7ec5bb61
commit
951c30d135
1 changed files with 0 additions and 18 deletions
|
|
@ -614,7 +614,6 @@ static void writeback_inodes_wb(struct bdi_writeback *wb,
|
|||
struct writeback_control *wbc)
|
||||
{
|
||||
struct super_block *sb = wbc->sb, *pin_sb = NULL;
|
||||
const int is_blkdev_sb = sb_is_blkdev_sb(sb);
|
||||
const unsigned long start = jiffies; /* livelock avoidance */
|
||||
|
||||
spin_lock(&inode_lock);
|
||||
|
|
@ -635,23 +634,6 @@ static void writeback_inodes_wb(struct bdi_writeback *wb,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!bdi_cap_writeback_dirty(wb->bdi)) {
|
||||
redirty_tail(inode);
|
||||
if (is_blkdev_sb) {
|
||||
/*
|
||||
* Dirty memory-backed blockdev: the ramdisk
|
||||
* driver does this. Skip just this inode
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
/*
|
||||
* Dirty memory-backed inode against a filesystem other
|
||||
* than the kernel-internal bdev filesystem. Skip the
|
||||
* entire superblock.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
|
||||
if (inode->i_state & (I_NEW | I_WILL_FREE)) {
|
||||
requeue_io(inode);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue