Skip to content

Commit 24604f7

Browse files
jtlaytonidryomov
authored andcommitted
ceph: move net/ceph/ceph_fs.c to fs/ceph/util.c
All of these functions are only called from CephFS, so move them into ceph.ko, and drop the exports. Signed-off-by: Jeff Layton <[email protected]> Reviewed-by: Ilya Dryomov <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent d36e0b6 commit 24604f7

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

fs/ceph/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ obj-$(CONFIG_CEPH_FS) += ceph.o
88
ceph-y := super.o inode.o dir.o file.o locks.o addr.o ioctl.o \
99
export.o caps.o snap.o xattr.o quota.o io.o \
1010
mds_client.o mdsmap.o strings.o ceph_frag.o \
11-
debugfs.o
11+
debugfs.o util.o
1212

1313
ceph-$(CONFIG_CEPH_FSCACHE) += cache.o
1414
ceph-$(CONFIG_CEPH_FS_POSIX_ACL) += acl.o

net/ceph/ceph_fs.c renamed to fs/ceph/util.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ void ceph_file_layout_from_legacy(struct ceph_file_layout *fl,
3939
fl->stripe_count == 0 && fl->object_size == 0)
4040
fl->pool_id = -1;
4141
}
42-
EXPORT_SYMBOL(ceph_file_layout_from_legacy);
4342

4443
void ceph_file_layout_to_legacy(struct ceph_file_layout *fl,
4544
struct ceph_file_layout_legacy *legacy)
@@ -52,7 +51,6 @@ void ceph_file_layout_to_legacy(struct ceph_file_layout *fl,
5251
else
5352
legacy->fl_pg_pool = 0;
5453
}
55-
EXPORT_SYMBOL(ceph_file_layout_to_legacy);
5654

5755
int ceph_flags_to_mode(int flags)
5856
{
@@ -82,7 +80,6 @@ int ceph_flags_to_mode(int flags)
8280

8381
return mode;
8482
}
85-
EXPORT_SYMBOL(ceph_flags_to_mode);
8683

8784
int ceph_caps_for_mode(int mode)
8885
{
@@ -101,4 +98,3 @@ int ceph_caps_for_mode(int mode)
10198

10299
return caps;
103100
}
104-
EXPORT_SYMBOL(ceph_caps_for_mode);

net/ceph/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ libceph-y := ceph_common.o messenger.o msgpool.o buffer.o pagelist.o \
1313
auth.o auth_none.o \
1414
crypto.o armor.o \
1515
auth_x.o \
16-
ceph_fs.o ceph_strings.o ceph_hash.o \
16+
ceph_strings.o ceph_hash.o \
1717
pagevec.o snapshot.o string_table.o

0 commit comments

Comments
 (0)