static int vfs_gluster_fremovexattr(struct vfs_handle_struct *handle,
files_struct *fsp, const char *name)
{
- glfs_fd_t *glfd = vfs_gluster_fetch_glfd(handle, fsp);
- if (glfd == NULL) {
- DBG_ERR("Failed to fetch gluster fd\n");
- return -1;
- }
if (!fsp->fsp_flags.is_pathref) {
/*
* We can use an io_fd to remove xattrs.
*/
+ glfs_fd_t *glfd = vfs_gluster_fetch_glfd(handle, fsp);
+
+ if (glfd == NULL) {
+ DBG_ERR("Failed to fetch gluster fd\n");
+ return -1;
+ }
return glfs_fremovexattr(glfd, name);
} else {
/*