Skip to content

Commit

Permalink
[GFS2] Add a comment in ops_export.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Whitehouse committed Sep 5, 2006
1 parent 2c1e52a commit 7b62536
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/gfs2/ops_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 7b62536

Please sign in to comment.