zfsonlinux/zfs — pull request #2500 by behlendorf (2014-07-15 21:29:25+00:00)
Title: Fix zil_commit() NULL dereference

Update the current code to ensure inodes are never dirtied if they are
part of a read-only file system or snapshot. If they do somehow get
dirtied an attempt will make made to write them to disk. In the case
of snapshots, which don't have a ZIL, this will result in a NULL
dereference in zil_commit().

Signed-off-by: Brian Behlendorf
Issue #2405