]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Truncate address space mapping when deleting an inode
authorBob Peterson <rpeterso@redhat.com>
Mon, 7 Dec 2015 21:13:28 +0000 (15:13 -0600)
committerBob Peterson <rpeterso@redhat.com>
Fri, 18 Dec 2015 16:52:21 +0000 (10:52 -0600)
commit0048f52f28f256b9e9ead70266e807247d509165
treece121efbff68c56d5fca6fbb7f3719461e7d4799
parentfc5d1610316c7ce7b63f5beb7d5464816fd82f9d
GFS2: Truncate address space mapping when deleting an inode

In function gfs2_delete_inode() we write and flush the mapping for
a glock, among other things. We truncate the mapping for the inode,
but we never truncate the mapping for the glock. This patch makes it
also truncate the metamapping. This avoid cases where the glock is
reused by another process who is trying to recreate an inode in its
place using the same block.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/super.c