summaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-05 15:56:17 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-05 15:56:17 -0400
commit7b62536141927212158ab84ce2afda9319ae6f2d (patch)
tree1f4df51dbd9285f80b10961dea6273b721fd0d69 /fs/gfs2
parent2c1e52aa905f2223dc600cfeda6c0dc94fac8b81 (diff)
[GFS2] Add a comment in ops_export.c
Ass a comment explaining the slightly odd construct used to pass error values back. Cc: Jan Engelhardt <jengelh@linux01.gwdg.de> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-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 4b8c6a9893e..470e8829e7f 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)
if (!inode)
return ERR_PTR(-ENOENT);
+ /*
+ * In case of an error, @inode carries the error value, and we
+ * have to return that as a(n invalid) pointer to dentry.
+ */
if (IS_ERR(inode))
return ERR_PTR(PTR_ERR(inode));