diff options
| -rw-r--r-- | fs/gfs2/inode.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 5acd3ce30759..e3a27fd284dd 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -780,7 +780,8 @@ fail_gunlock2:  fail_free_inode:  	if (ip->i_gl) {  		glock_clear_object(ip->i_gl, ip); -		gfs2_glock_put(ip->i_gl); +		if (free_vfs_inode) /* else evict will do the put for us */ +			gfs2_glock_put(ip->i_gl);  	}  	gfs2_rs_delete(ip, NULL);  	gfs2_qa_put(ip); | 
