Skip to content

Commit 23e91d8

Browse files
committed
cifs: rename cifs_common to smbfs_common
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent fc111fb commit 23e91d8

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

fs/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ source "fs/ceph/Kconfig"
352352
source "fs/cifs/Kconfig"
353353
source "fs/ksmbd/Kconfig"
354354

355-
config CIFS_COMMON
355+
config SMBFS_COMMON
356356
tristate
357357
default y if CIFS=y
358358
default m if CIFS=m

fs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ obj-$(CONFIG_LOCKD) += lockd/
9696
obj-$(CONFIG_NLS) += nls/
9797
obj-$(CONFIG_UNICODE) += unicode/
9898
obj-$(CONFIG_SYSV_FS) += sysv/
99-
obj-$(CONFIG_CIFS_COMMON) += cifs_common/
99+
obj-$(CONFIG_SMBFS_COMMON) += smbfs_common/
100100
obj-$(CONFIG_CIFS) += cifs/
101101
obj-$(CONFIG_SMB_SERVER) += ksmbd/
102102
obj-$(CONFIG_HPFS_FS) += hpfs/

fs/cifs/cifsencrypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <linux/random.h>
2323
#include <linux/highmem.h>
2424
#include <linux/fips.h>
25-
#include "../cifs_common/arc4.h"
25+
#include "../smbfs_common/arc4.h"
2626
#include <crypto/aead.h>
2727

2828
int __cifs_calc_signature(struct smb_rqst *rqst,

fs/cifs/smbencrypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "cifsglob.h"
2525
#include "cifs_debug.h"
2626
#include "cifsproto.h"
27-
#include "../cifs_common/md4.h"
27+
#include "../smbfs_common/md4.h"
2828

2929
#ifndef false
3030
#define false 0

fs/cifs_common/Makefile renamed to fs/smbfs_common/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Makefile for Linux filesystem routines that are shared by client and server.
44
#
55

6-
obj-$(CONFIG_CIFS_COMMON) += cifs_arc4.o
7-
obj-$(CONFIG_CIFS_COMMON) += cifs_md4.o
6+
obj-$(CONFIG_SMBFS_COMMON) += cifs_arc4.o
7+
obj-$(CONFIG_SMBFS_COMMON) += cifs_md4.o
File renamed without changes.

fs/cifs_common/cifs_arc4.c renamed to fs/smbfs_common/cifs_arc4.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ void cifs_arc4_crypt(struct arc4_ctx *ctx, u8 *out, const u8 *in, unsigned int l
7474
EXPORT_SYMBOL_GPL(cifs_arc4_crypt);
7575

7676
static int __init
77-
init_cifs_common(void)
77+
init_smbfs_common(void)
7878
{
7979
return 0;
8080
}
8181
static void __init
82-
exit_cifs_common(void)
82+
exit_smbfs_common(void)
8383
{
8484
}
8585

86-
module_init(init_cifs_common)
87-
module_exit(exit_cifs_common)
86+
module_init(init_smbfs_common)
87+
module_exit(exit_smbfs_common)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)