ext4: warn when page is dirtied without buffers
authorJan Kara <jack@suse.cz>
Thu, 1 Dec 2016 16:46:40 +0000 (11:46 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 1 Dec 2016 16:46:40 +0000 (11:46 -0500)
commit6dcc693bc57f198bd85a7881eb59a915366fae1e
tree9ef8f62d5450572910d93a735aa2f7f5ea56be34
parentd14e7683ecf06aa4365ee96adf74494114341dbe
ext4: warn when page is dirtied without buffers

Warn when a page is dirtied without buffers (as that will likely lead to
a crash in ext4_writepages()) or when it gets newly dirtied without the
page being locked (as there is nothing that prevents buffers to get
stripped just before calling set_page_dirty() under memory pressure).

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c