Skip to contentSkip to conversation

GFS2: Don't warn when delete inode fails on ro filesystem

Cluster-devel Steven Whitehouse 1 participant 1 message May 19, 2009 GFS2 file system

lore
Share & tools
lore
#0 lore raw

From ef9e8b14a5c1d0afbaf12b4c3b271188ddfc52a4 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Tue, 19 May 2009 14:25:16 +0100
Subject: [PATCH] GFS2: Don't warn when delete inode fails on ro filesystem

If the filesystem is read-only, then we expect that delete inode will fail, so there is no need to warn about it.

fs/gfs2/ops_super.c +1 -1
index a3c2272..2fd1dcb 100644
@@ -714,7 +714,7 @@ out_unlock:
 		gfs2_glock_dq(&ip->i_iopen_gh);
 	gfs2_holder_uninit(&ip->i_iopen_gh);
 	gfs2_glock_dq_uninit(&gh);
-	if (error && error != GLR_TRYFAILED)
+	if (error && error != GLR_TRYFAILED && error != -EROFS)
 		fs_warn(sdp, "gfs2_delete_inode: %d\n", error);
 out:
 	truncate_inode_pages(&inode->i_data, 0);
Signature · 1 line
1.6.0.6