mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
smb3: correct places where ENOTSUPP is used instead of preferred EOPNOTSUPP
[ Upstream commit ebc3d4e44a ]
checkpatch flagged a few places with:
WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP
Also fixed minor typo
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2259e1901b
commit
2132ea3f9f
@@ -2605,7 +2605,7 @@ int cifs_fiemap(struct inode *inode, struct fiemap_extent_info *fei, u64 start,
|
|||||||
}
|
}
|
||||||
|
|
||||||
cifsFileInfo_put(cfile);
|
cifsFileInfo_put(cfile);
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cifs_truncate_page(struct address_space *mapping, loff_t from)
|
int cifs_truncate_page(struct address_space *mapping, loff_t from)
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ smb2_adjust_credits(struct TCP_Server_Info *server,
|
|||||||
cifs_server_dbg(VFS, "request has less credits (%d) than required (%d)",
|
cifs_server_dbg(VFS, "request has less credits (%d) than required (%d)",
|
||||||
credits->value, new_val);
|
credits->value, new_val);
|
||||||
|
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
spin_lock(&server->req_lock);
|
spin_lock(&server->req_lock);
|
||||||
@@ -1155,7 +1155,7 @@ smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
|
|||||||
/* Use a fudge factor of 256 bytes in case we collide
|
/* Use a fudge factor of 256 bytes in case we collide
|
||||||
* with a different set_EAs command.
|
* with a different set_EAs command.
|
||||||
*/
|
*/
|
||||||
if(CIFSMaxBufSize - MAX_SMB2_CREATE_RESPONSE_SIZE -
|
if (CIFSMaxBufSize - MAX_SMB2_CREATE_RESPONSE_SIZE -
|
||||||
MAX_SMB2_CLOSE_RESPONSE_SIZE - 256 <
|
MAX_SMB2_CLOSE_RESPONSE_SIZE - 256 <
|
||||||
used_len + ea_name_len + ea_value_len + 1) {
|
used_len + ea_name_len + ea_value_len + 1) {
|
||||||
rc = -ENOSPC;
|
rc = -ENOSPC;
|
||||||
@@ -4721,7 +4721,7 @@ handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid,
|
|||||||
|
|
||||||
if (shdr->Command != SMB2_READ) {
|
if (shdr->Command != SMB2_READ) {
|
||||||
cifs_server_dbg(VFS, "only big read responses are supported\n");
|
cifs_server_dbg(VFS, "only big read responses are supported\n");
|
||||||
return -ENOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (server->ops->is_session_expired &&
|
if (server->ops->is_session_expired &&
|
||||||
|
|||||||
Reference in New Issue
Block a user