]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
cifs: rename cifs_common to smbfs_common
authorSteve French <stfrench@microsoft.com>
Thu, 9 Sep 2021 04:59:26 +0000 (23:59 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 9 Sep 2021 04:59:26 +0000 (23:59 -0500)
As we move to common code between client and server, we have
been asked to make the names less confusing, and refer less
to "cifs" and more to words which include "smb" instead to
e.g. "smbfs" for the client (we already have "ksmbd" for the
kernel server, and "smbd" for the user space Samba daemon).
So to be more consistent in the naming of common code between
client and server and reduce the risk of merge conflicts as
more common code is added - rename "cifs_common" to
"smbfs_common" (in future releases we also will rename
the fs/cifs directory to fs/smbfs)

Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/Kconfig
fs/Makefile
fs/cifs/cifsencrypt.c
fs/cifs/smbencrypt.c
fs/smbfs_common/Makefile [moved from fs/cifs_common/Makefile with 59% similarity]
fs/smbfs_common/arc4.h [moved from fs/cifs_common/arc4.h with 100% similarity]
fs/smbfs_common/cifs_arc4.c [moved from fs/cifs_common/cifs_arc4.c with 91% similarity]
fs/smbfs_common/cifs_md4.c [moved from fs/cifs_common/cifs_md4.c with 100% similarity]
fs/smbfs_common/md4.h [moved from fs/cifs_common/md4.h with 100% similarity]

index b11bd4b387e16caff5a68fb77fc1b849ff449b2f..e7940882cbe8be906aaec4f23c31fa4c91c8e6ea 100644 (file)
@@ -352,7 +352,7 @@ source "fs/ceph/Kconfig"
 source "fs/cifs/Kconfig"
 source "fs/ksmbd/Kconfig"
 
-config CIFS_COMMON
+config SMBFS_COMMON
        tristate
        default y if CIFS=y
        default m if CIFS=m
index 354e2ba3ee67df7c6c2e7393308277dd5a10281a..1f18802f43a4e78ba255b37d7d641c48cf00bee6 100644 (file)
@@ -96,7 +96,7 @@ obj-$(CONFIG_LOCKD)           += lockd/
 obj-$(CONFIG_NLS)              += nls/
 obj-$(CONFIG_UNICODE)          += unicode/
 obj-$(CONFIG_SYSV_FS)          += sysv/
-obj-$(CONFIG_CIFS_COMMON)      += cifs_common/
+obj-$(CONFIG_SMBFS_COMMON)     += smbfs_common/
 obj-$(CONFIG_CIFS)             += cifs/
 obj-$(CONFIG_SMB_SERVER)       += ksmbd/
 obj-$(CONFIG_HPFS_FS)          += hpfs/
index 6679e07e533e8504981a1d6af211e270b2a3afff..2e6f4034403767ca621c65fa394337a0416007af 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/random.h>
 #include <linux/highmem.h>
 #include <linux/fips.h>
-#include "../cifs_common/arc4.h"
+#include "../smbfs_common/arc4.h"
 #include <crypto/aead.h>
 
 int __cifs_calc_signature(struct smb_rqst *rqst,
index 10047cc5528651292244ff012d5a61d64ac2baeb..4a048775386910936400a2d2e052116cf6754db0 100644 (file)
@@ -24,7 +24,7 @@
 #include "cifsglob.h"
 #include "cifs_debug.h"
 #include "cifsproto.h"
-#include "../cifs_common/md4.h"
+#include "../smbfs_common/md4.h"
 
 #ifndef false
 #define false 0
similarity index 59%
rename from fs/cifs_common/Makefile
rename to fs/smbfs_common/Makefile
index 6fedd2f88a25c5d408be87497c3513bf991f7596..cafc61a3bfc3721216a30fc54096abc84ba209c1 100644 (file)
@@ -3,5 +3,5 @@
 # Makefile for Linux filesystem routines that are shared by client and server.
 #
 
-obj-$(CONFIG_CIFS_COMMON) += cifs_arc4.o
-obj-$(CONFIG_CIFS_COMMON) += cifs_md4.o
+obj-$(CONFIG_SMBFS_COMMON) += cifs_arc4.o
+obj-$(CONFIG_SMBFS_COMMON) += cifs_md4.o
similarity index 100%
rename from fs/cifs_common/arc4.h
rename to fs/smbfs_common/arc4.h
similarity index 91%
rename from fs/cifs_common/cifs_arc4.c
rename to fs/smbfs_common/cifs_arc4.c
index b964cc682944c88f526cc00bf39b9993057637e6..85ba15a60b13b36887e0bb3901f8125eb1f6b97b 100644 (file)
@@ -74,14 +74,14 @@ void cifs_arc4_crypt(struct arc4_ctx *ctx, u8 *out, const u8 *in, unsigned int l
 EXPORT_SYMBOL_GPL(cifs_arc4_crypt);
 
 static int __init
-init_cifs_common(void)
+init_smbfs_common(void)
 {
        return 0;
 }
 static void __init
-exit_cifs_common(void)
+exit_smbfs_common(void)
 {
 }
 
-module_init(init_cifs_common)
-module_exit(exit_cifs_common)
+module_init(init_smbfs_common)
+module_exit(exit_smbfs_common)
similarity index 100%
rename from fs/cifs_common/md4.h
rename to fs/smbfs_common/md4.h