aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/ops_export.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/gfs2/ops_export.c b/fs/gfs2/ops_export.c
index 4b8c6a9893e4..470e8829e7f4 100644
--- a/fs/gfs2/ops_export.c
+++ b/fs/gfs2/ops_export.c
@@ -182,6 +182,10 @@ static struct dentry *gfs2_get_parent(struct dentry *child)
182 182
183 if (!inode) 183 if (!inode)
184 return ERR_PTR(-ENOENT); 184 return ERR_PTR(-ENOENT);
185 /*
186 * In case of an error, @inode carries the error value, and we
187 * have to return that as a(n invalid) pointer to dentry.
188 */
185 if (IS_ERR(inode)) 189 if (IS_ERR(inode))
186 return ERR_PTR(PTR_ERR(inode)); 190 return ERR_PTR(PTR_ERR(inode));
187 191