GFS2: Don't try to deallocate unlinked inodes when mounted ro
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 30 Mar 2011 13:17:51 +0000 (14:17 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 18 Apr 2011 14:23:12 +0000 (15:23 +0100)
commit001e8e8df4283dd4ef7a0297c012fce364c05cf1
tree28942d4cadc3da175a352c9804dad502d2bc4336
parent0ee532062fa7ff0795b3862c2d50efe32e552f9f
GFS2: Don't try to deallocate unlinked inodes when mounted ro

This adds a couple of missing tests to avoid read-only nodes
from attempting to deallocate unlinked inodes.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Reported-by: Michel Andre de la Porte <madelaporte@ubi.com>
fs/gfs2/glops.c
fs/gfs2/super.c