]> git.hungrycats.org Git - linux/commit
[PATCH] JFS: Avoid segfault when dirty inodes are written on readonly mount
authorDave Kleikamp <shaggy@austin.ibm.com>
Tue, 25 Nov 2003 05:41:19 +0000 (21:41 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 25 Nov 2003 05:41:19 +0000 (21:41 -0800)
commitbe595d154d9a3ff452051083f27efbb34668e461
tree98295e8103a1255352f638646c3140206ce87ef8
parente1d592cd2b6493cb25a7fe0bb7cdbb3b01266dbc
[PATCH] JFS: Avoid segfault when dirty inodes are written on readonly mount

This fixes an oops that can occur if JFS is used as the root filesystem.

Writes to a device node may cause a ->write_inode to be called during a
read-only mount.  JFS needs to check for NULL log in jfs_flush_journal.
fs/jfs/jfs_logmgr.c