From 529c3bf41f666d1238f71fba0465eaa812322276 Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Thu, 29 Oct 2015 20:39:57 +0530 Subject: gfapi: function exit should use __GLFS_EXIT_FS glfs api functions must be using __GLFS_EXIT_FS to exit from functions Change-Id: If6b71d8182f3dffe15a3606f31798904cb67be1b BUG: 1263056 Signed-off-by: Milind Changire Reviewed-on: http://review.gluster.org/12462 Reviewed-by: Niels de Vos Tested-by: Gluster Build System Tested-by: NetBSD Build System --- api/src/glfs-fops.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'api') diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c index c1af46b48f1..e57ad3f4a15 100644 --- a/api/src/glfs-fops.c +++ b/api/src/glfs-fops.c @@ -2850,13 +2850,13 @@ glfs_getxattr_common (struct glfs *fs, const char *path, const char *name, if (!name || *name == '\0') { ret = -1; errno = EINVAL; - goto invalid_fs; + goto out; } if (strlen(name) > GF_XATTR_NAME_MAX) { ret = -1; errno = ENAMETOOLONG; - goto invalid_fs; + goto out; } subvol = glfs_active_subvol (fs); @@ -2933,13 +2933,13 @@ pub_glfs_fgetxattr (struct glfs_fd *glfd, const char *name, void *value, if (!name || *name == '\0') { ret = -1; errno = EINVAL; - goto invalid_fs; + goto out; } if (strlen(name) > GF_XATTR_NAME_MAX) { ret = -1; errno = ENAMETOOLONG; - goto invalid_fs; + goto out; } subvol = glfs_active_subvol (glfd->fs); @@ -3138,13 +3138,13 @@ glfs_setxattr_common (struct glfs *fs, const char *path, const char *name, if (!name || *name == '\0') { ret = -1; errno = EINVAL; - goto invalid_fs; + goto out; } if (strlen(name) > GF_XATTR_NAME_MAX) { ret = -1; errno = ENAMETOOLONG; - goto invalid_fs; + goto out; } subvol = glfs_active_subvol (fs); @@ -3226,13 +3226,13 @@ pub_glfs_fsetxattr (struct glfs_fd *glfd, const char *name, const void *value, if (!name || *name == '\0') { ret = -1; errno = EINVAL; - goto invalid_fs; + goto out; } if (strlen(name) > GF_XATTR_NAME_MAX) { ret = -1; errno = ENAMETOOLONG; - goto invalid_fs; + goto out; } subvol = glfs_active_subvol (glfd->fs); -- cgit