]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Write out dirty inode metadata in delayed deletes
authorBenjamin Marzinski <bmarzins@redhat.com>
Thu, 20 Sep 2012 14:52:58 +0000 (09:52 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 24 Sep 2012 09:47:30 +0000 (10:47 +0100)
commit97dcb2421a8108612b880136fb919641847e3b56
tree9cfa0e4e5f6a3d16f503f08321ba776be8695221
parentbc560d0ee1e240ac5acad278545bbe0864b6b94f
GFS2: Write out dirty inode metadata in delayed deletes

If a dirty GFS2 inode was being deleted but was in use by another node, its
metadata was not getting written out before GFS2 checked for dirty buffers in
gfs2_ail_flush().  GFS2 was relying on inode_go_sync() to write out the
metadata when the other node tried to free the file, but it failed the error
check before it got that far. This patch writes out the metadata before calling
gfs2_ail_flush()

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/super.c