diff options
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r-- | fs/fs-writeback.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 2e601ce581c9..da86ef58e427 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c | |||
@@ -1046,6 +1046,14 @@ void __mark_inode_dirty(struct inode *inode, int flags) | |||
1046 | */ | 1046 | */ |
1047 | if (!was_dirty) { | 1047 | if (!was_dirty) { |
1048 | struct bdi_writeback *wb = &inode_to_bdi(inode)->wb; | 1048 | struct bdi_writeback *wb = &inode_to_bdi(inode)->wb; |
1049 | struct backing_dev_info *bdi = wb->bdi; | ||
1050 | |||
1051 | if (bdi_cap_writeback_dirty(bdi) && | ||
1052 | !test_bit(BDI_registered, &bdi->state)) { | ||
1053 | WARN_ON(1); | ||
1054 | printk(KERN_ERR "bdi-%s not registered\n", | ||
1055 | bdi->name); | ||
1056 | } | ||
1049 | 1057 | ||
1050 | inode->dirtied_when = jiffies; | 1058 | inode->dirtied_when = jiffies; |
1051 | list_move(&inode->i_list, &wb->b_dirty); | 1059 | list_move(&inode->i_list, &wb->b_dirty); |