Skip to content

Commit 622d88e

Browse files
author
Darrick J. Wong
committed
xfs: move xfs_symlink_remote.c declarations to xfs_symlink_remote.h
Move declarations for libxfs symlink functions into a separate header file like we do for most everything else. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
1 parent 6c8127e commit 622d88e

File tree

8 files changed

+28
-14
lines changed

8 files changed

+28
-14
lines changed

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "xfs_iomap.h"
3939
#include "xfs_health.h"
4040
#include "xfs_bmap_item.h"
41+
#include "xfs_symlink_remote.h"
4142

4243
struct kmem_cache *xfs_bmap_intent_cache;
4344

fs/xfs/libxfs/xfs_inode_fork.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "xfs_types.h"
2727
#include "xfs_errortag.h"
2828
#include "xfs_health.h"
29+
#include "xfs_symlink_remote.h"
2930

3031
struct kmem_cache *xfs_ifork_cache;
3132

fs/xfs/libxfs/xfs_shared.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -182,19 +182,6 @@ void xfs_log_get_max_trans_res(struct xfs_mount *mp,
182182
#define XFS_ICHGTIME_CHG 0x2 /* inode field change timestamp */
183183
#define XFS_ICHGTIME_CREATE 0x4 /* inode create timestamp */
184184

185-
186-
/*
187-
* Symlink decoding/encoding functions
188-
*/
189-
int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen);
190-
int xfs_symlink_hdr_set(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset,
191-
uint32_t size, struct xfs_buf *bp);
192-
bool xfs_symlink_hdr_ok(xfs_ino_t ino, uint32_t offset,
193-
uint32_t size, struct xfs_buf *bp);
194-
void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp,
195-
struct xfs_inode *ip, struct xfs_ifork *ifp);
196-
xfs_failaddr_t xfs_symlink_shortform_verify(void *sfp, int64_t size);
197-
198185
/* Computed inode geometry for the filesystem. */
199186
struct xfs_ino_geometry {
200187
/* Maximum inode count in this filesystem. */

fs/xfs/libxfs/xfs_symlink_remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "xfs_trans.h"
1717
#include "xfs_buf_item.h"
1818
#include "xfs_log.h"
19-
19+
#include "xfs_symlink_remote.h"
2020

2121
/*
2222
* Each contiguous block has a header, so it is not just a simple pathlen

fs/xfs/libxfs/xfs_symlink_remote.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/*
3+
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
4+
* Copyright (c) 2013 Red Hat, Inc.
5+
* All Rights Reserved.
6+
*/
7+
#ifndef __XFS_SYMLINK_REMOTE_H
8+
#define __XFS_SYMLINK_REMOTE_H
9+
10+
/*
11+
* Symlink decoding/encoding functions
12+
*/
13+
int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen);
14+
int xfs_symlink_hdr_set(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset,
15+
uint32_t size, struct xfs_buf *bp);
16+
bool xfs_symlink_hdr_ok(xfs_ino_t ino, uint32_t offset,
17+
uint32_t size, struct xfs_buf *bp);
18+
void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp,
19+
struct xfs_inode *ip, struct xfs_ifork *ifp);
20+
xfs_failaddr_t xfs_symlink_shortform_verify(void *sfp, int64_t size);
21+
22+
#endif /* __XFS_SYMLINK_REMOTE_H */

fs/xfs/scrub/inode_repair.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "xfs_attr_leaf.h"
3838
#include "xfs_log_priv.h"
3939
#include "xfs_health.h"
40+
#include "xfs_symlink_remote.h"
4041
#include "scrub/xfs_scrub.h"
4142
#include "scrub/scrub.h"
4243
#include "scrub/common.h"

fs/xfs/scrub/symlink.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "xfs_inode.h"
1414
#include "xfs_symlink.h"
1515
#include "xfs_health.h"
16+
#include "xfs_symlink_remote.h"
1617
#include "scrub/scrub.h"
1718
#include "scrub/common.h"
1819
#include "scrub/health.h"

fs/xfs/xfs_symlink.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "xfs_ialloc.h"
2525
#include "xfs_error.h"
2626
#include "xfs_health.h"
27+
#include "xfs_symlink_remote.h"
2728

2829
/* ----- Kernel only functions below ----- */
2930
int

0 commit comments

Comments
 (0)