mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
cifs: minor kernel style fixes for comments
Trivial fix for a few comments which didn't follow kernel style Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
e73a42e07a
commit
bc04499477
|
|
@ -1024,9 +1024,9 @@ cifs_demultiplex_thread(void *p)
|
||||||
module_put_and_exit(0);
|
module_put_and_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if srcaddr isn't specified and rhs isn't
|
/**
|
||||||
* specified, or if srcaddr is specified and
|
* Returns true if srcaddr isn't specified and rhs isn't specified, or
|
||||||
* matches the IP address of the rhs argument.
|
* if srcaddr is specified and matches the IP address of the rhs argument
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
cifs_match_ipaddr(struct sockaddr *srcaddr, struct sockaddr *rhs)
|
cifs_match_ipaddr(struct sockaddr *srcaddr, struct sockaddr *rhs)
|
||||||
|
|
@ -2544,7 +2544,8 @@ ip_connect(struct TCP_Server_Info *server)
|
||||||
void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
|
void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
|
||||||
struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx)
|
struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx)
|
||||||
{
|
{
|
||||||
/* if we are reconnecting then should we check to see if
|
/*
|
||||||
|
* If we are reconnecting then should we check to see if
|
||||||
* any requested capabilities changed locally e.g. via
|
* any requested capabilities changed locally e.g. via
|
||||||
* remount but we can not do much about it here
|
* remount but we can not do much about it here
|
||||||
* if they have (even if we could detect it by the following)
|
* if they have (even if we could detect it by the following)
|
||||||
|
|
@ -2552,7 +2553,8 @@ void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
|
||||||
* or if we change to make all sb to same share the same
|
* or if we change to make all sb to same share the same
|
||||||
* sb as NFS - then we only have one backpointer to sb.
|
* sb as NFS - then we only have one backpointer to sb.
|
||||||
* What if we wanted to mount the server share twice once with
|
* What if we wanted to mount the server share twice once with
|
||||||
* and once without posixacls or posix paths? */
|
* and once without posixacls or posix paths?
|
||||||
|
*/
|
||||||
__u64 saved_cap = le64_to_cpu(tcon->fsUnixInfo.Capability);
|
__u64 saved_cap = le64_to_cpu(tcon->fsUnixInfo.Capability);
|
||||||
|
|
||||||
if (ctx && ctx->no_linux_ext) {
|
if (ctx && ctx->no_linux_ext) {
|
||||||
|
|
@ -2571,11 +2573,15 @@ void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
|
||||||
if (!CIFSSMBQFSUnixInfo(xid, tcon)) {
|
if (!CIFSSMBQFSUnixInfo(xid, tcon)) {
|
||||||
__u64 cap = le64_to_cpu(tcon->fsUnixInfo.Capability);
|
__u64 cap = le64_to_cpu(tcon->fsUnixInfo.Capability);
|
||||||
cifs_dbg(FYI, "unix caps which server supports %lld\n", cap);
|
cifs_dbg(FYI, "unix caps which server supports %lld\n", cap);
|
||||||
/* check for reconnect case in which we do not
|
/*
|
||||||
want to change the mount behavior if we can avoid it */
|
* check for reconnect case in which we do not
|
||||||
|
* want to change the mount behavior if we can avoid it
|
||||||
|
*/
|
||||||
if (ctx == NULL) {
|
if (ctx == NULL) {
|
||||||
/* turn off POSIX ACL and PATHNAMES if not set
|
/*
|
||||||
originally at mount time */
|
* turn off POSIX ACL and PATHNAMES if not set
|
||||||
|
* originally at mount time
|
||||||
|
*/
|
||||||
if ((saved_cap & CIFS_UNIX_POSIX_ACL_CAP) == 0)
|
if ((saved_cap & CIFS_UNIX_POSIX_ACL_CAP) == 0)
|
||||||
cap &= ~CIFS_UNIX_POSIX_ACL_CAP;
|
cap &= ~CIFS_UNIX_POSIX_ACL_CAP;
|
||||||
if ((saved_cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) == 0) {
|
if ((saved_cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) == 0) {
|
||||||
|
|
@ -2977,7 +2983,6 @@ build_unc_path_to_root(const struct smb3_fs_context *ctx,
|
||||||
/**
|
/**
|
||||||
* expand_dfs_referral - Perform a dfs referral query and update the cifs_sb
|
* expand_dfs_referral - Perform a dfs referral query and update the cifs_sb
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* If a referral is found, cifs_sb->ctx->mount_options will be (re-)allocated
|
* If a referral is found, cifs_sb->ctx->mount_options will be (re-)allocated
|
||||||
* to a string containing updated options for the submount. Otherwise it
|
* to a string containing updated options for the submount. Otherwise it
|
||||||
* will be left untouched.
|
* will be left untouched.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user