When underlying block device becomes unavailable (e.g. someone pulling an USB stick from under us), kernel produces warning about non-uptodate buffer (superblock) being marked dirty. Silence these warnings by making buffer uptodate before marking it dirty. Signed-off-by: Jan Kara <jack@suse.cz> --- fs/jbd/journal.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index b99c3b3..9303608 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c @@ -959,6 +959,7 @@ void journal_update_superblock(journal_t *journal, int wait) spin_unlock(&journal->j_state_lock); BUFFER_TRACE(bh, "marking dirty"); + set_buffer_uptodate(bh); mark_buffer_dirty(bh); if (wait) sync_dirty_buffer(bh); -- 1.5.2.4 --
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Nick Piggin | [patch] my mmu notifier sample driver |
| Sean | Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching |
| Arjan van de Ven | [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
git: | |
| Antonio Almeida | HTB accuracy for high speed |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jens Axboe | Re: [BUG] New Kernel Bugs |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
