aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2009-05-19 14:25:16 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2009-05-19 14:25:16 +0100
commitef9e8b14a5c1d0afbaf12b4c3b271188ddfc52a4 (patch)
treea0cf0f3e57484a1f897bae07af57870eff841c9a /fs
parente9ccb73ab57ada469602506496c42e5b4468ac3e (diff)
downloadkernel_samsung_tuna-ef9e8b14a5c1d0afbaf12b4c3b271188ddfc52a4.zip
kernel_samsung_tuna-ef9e8b14a5c1d0afbaf12b4c3b271188ddfc52a4.tar.gz
kernel_samsung_tuna-ef9e8b14a5c1d0afbaf12b4c3b271188ddfc52a4.tar.bz2
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. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/ops_super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/ops_super.c b/fs/gfs2/ops_super.c
index a3c2272..2fd1dcb 100644
--- a/fs/gfs2/ops_super.c
+++ b/fs/gfs2/ops_super.c
@@ -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);