projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c1e52a
)
[GFS2] Add a comment in ops_export.c
author
Steven Whitehouse
<swhiteho@redhat.com>
Tue, 5 Sep 2006 19:56:17 +0000
(15:56 -0400)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Tue, 5 Sep 2006 19:56:17 +0000
(15:56 -0400)
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>
fs/gfs2/ops_export.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/ops_export.c
b/fs/gfs2/ops_export.c
index 4b8c6a9893e4e41f61c91ca7bcad5f5278ae69fe..470e8829e7f4b7ce489ccc6a0f3445f28e1b9b5a 100644
(file)
--- 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));