]> git.ipfire.org Git - people/arne_f/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)
commitee530beafeca9826b2086eab053312b182c09669
treece121efbff68c56d5fca6fbb7f3719461e7d4799
parent86d067a797d4e8546a7c92b985f31e8cd3ec39ad
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