Commit ebc3d4e4 authored by Steve French's avatar Steve French
Browse files

smb3: correct places where ENOTSUPP is used instead of preferred EOPNOTSUPP



checkpatch flagged a few places with:
     WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP
Also fixed minor typo

Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 05d0f8f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2680,7 +2680,7 @@ int cifs_fiemap(struct inode *inode, struct fiemap_extent_info *fei, u64 start,
	}

	cifsFileInfo_put(cfile);
	return -ENOTSUPP;
	return -EOPNOTSUPP;
}

int cifs_truncate_page(struct address_space *mapping, loff_t from)
+3 −3
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ smb2_adjust_credits(struct TCP_Server_Info *server,
		cifs_server_dbg(VFS, "request has less credits (%d) than required (%d)",
				credits->value, new_val);

		return -ENOTSUPP;
		return -EOPNOTSUPP;
	}

	spin_lock(&server->req_lock);
@@ -4591,7 +4591,7 @@ handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid,

	if (shdr->Command != SMB2_READ) {
		cifs_server_dbg(VFS, "only big read responses are supported\n");
		return -ENOTSUPP;
		return -EOPNOTSUPP;
	}

	if (server->ops->is_session_expired &&