mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
xfs: create a static name for the dot entry too
Create an xfs_name_dot object so that upcoming scrub code can compare against that. Offline repair already has such an object, so we're really just hoisting it to the kernel. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
82334a79c6
commit
e99bfc9e68
|
|
@ -25,6 +25,12 @@ const struct xfs_name xfs_name_dotdot = {
|
|||
.type = XFS_DIR3_FT_DIR,
|
||||
};
|
||||
|
||||
const struct xfs_name xfs_name_dot = {
|
||||
.name = (const unsigned char *)".",
|
||||
.len = 1,
|
||||
.type = XFS_DIR3_FT_DIR,
|
||||
};
|
||||
|
||||
/*
|
||||
* Convert inode mode to directory entry filetype
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ struct xfs_dir3_icfree_hdr;
|
|||
struct xfs_dir3_icleaf_hdr;
|
||||
|
||||
extern const struct xfs_name xfs_name_dotdot;
|
||||
extern const struct xfs_name xfs_name_dot;
|
||||
|
||||
/*
|
||||
* Convert inode mode to directory entry filetype
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user