diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs-writeback.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index fe190a8b0bc8..5df6157e5bce 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -1082,6 +1082,8 @@ void __mark_inode_dirty(struct inode *inode, int flags) if (!was_dirty) { bool wakeup_bdi = false; bdi = inode_to_bdi(inode); + if (!bdi) + goto out; if (bdi_cap_writeback_dirty(bdi)) { WARN(!test_bit(BDI_registered, &bdi->state), |