projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9ccb73
)
GFS2: Don't warn when delete inode fails on ro filesystem
author
Steven Whitehouse
<swhiteho@redhat.com>
Tue, 19 May 2009 13:25:16 +0000
(14:25 +0100)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Tue, 19 May 2009 13:25:16 +0000
(14:25 +0100)
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>
fs/gfs2/ops_super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/gfs2/ops_super.c
b/fs/gfs2/ops_super.c
index a3c2272e7cade19b0057d69153b08c512790adc0..2fd1dcbcc5b74914e19a5c5c726e2b136d73c0b2 100644
(file)
--- 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);