summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorSteven Whitehouse2013-07-17 09:11:32 +0200
committerSteven Whitehouse2013-08-19 10:32:29 +0200
commit2523d47a798b5d985ba404d0d793270494ccf6e9 (patch)
tree835c13ddc897c044a632045bbee4f286f1c893fb /fs/gfs2/inode.c
parentMerge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/t... (diff)
downloadkernel-qcow2-linux-2523d47a798b5d985ba404d0d793270494ccf6e9.tar.gz
kernel-qcow2-linux-2523d47a798b5d985ba404d0d793270494ccf6e9.tar.xz
kernel-qcow2-linux-2523d47a798b5d985ba404d0d793270494ccf6e9.zip
GFS2: Fix typo in gfs2_create_inode()
PTR_RET should be PTR_ERR Reported-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index bbb2715171cd..a01b8fd3a1c1 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -594,7 +594,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,
}
gfs2_glock_dq_uninit(ghs);
if (IS_ERR(d))
- return PTR_RET(d);
+ return PTR_ERR(d);
return error;
} else if (error != -ENOENT) {
goto fail_gunlock;