Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
···1010struct xfs_inode;1111struct xfs_trans;1212struct zone;1313-struct xfs_dir_ops;14131514/*1615 * Directory/attribute geometry information. There will be one of these for each
-46
fs/xfs/libxfs/xfs_da_format.c
···11-// SPDX-License-Identifier: GPL-2.022-/*33- * Copyright (c) 2000,2002,2005 Silicon Graphics, Inc.44- * Copyright (c) 2013 Red Hat, Inc.55- * All Rights Reserved.66- */77-#include "xfs.h"88-#include "xfs_fs.h"99-#include "xfs_shared.h"1010-#include "xfs_format.h"1111-#include "xfs_log_format.h"1212-#include "xfs_trans_resv.h"1313-#include "xfs_mount.h"1414-#include "xfs_inode.h"1515-#include "xfs_dir2.h"1616-#include "xfs_dir2_priv.h"1717-1818-static const struct xfs_dir_ops xfs_dir2_ops = {1919-};2020-2121-static const struct xfs_dir_ops xfs_dir2_ftype_ops = {2222-};2323-2424-static const struct xfs_dir_ops xfs_dir3_ops = {2525-};2626-2727-/*2828- * Return the ops structure according to the current config. If we are passed2929- * an inode, then that overrides the default config we use which is based on3030- * feature bits.3131- */3232-const struct xfs_dir_ops *3333-xfs_dir_get_ops(3434- struct xfs_mount *mp,3535- struct xfs_inode *dp)3636-{3737- if (dp)3838- return dp->d_ops;3939- if (mp->m_dir_inode_ops)4040- return mp->m_dir_inode_ops;4141- if (xfs_sb_version_hascrc(&mp->m_sb))4242- return &xfs_dir3_ops;4343- if (xfs_sb_version_hasftype(&mp->m_sb))4444- return &xfs_dir2_ftype_ops;4545- return &xfs_dir2_ops;4646-}
···1212struct xfs_nameops;1313struct xfs_ail;1414struct xfs_quotainfo;1515-struct xfs_dir_ops;1615struct xfs_da_geometry;17161817/* dynamic preallocation free space thresholds, 5% down to 1% */···155156 int m_swidth; /* stripe width */156157 uint8_t m_sectbb_log; /* sectlog - BBSHIFT */157158 const struct xfs_nameops *m_dirnameops; /* vector of dir name ops */158158- const struct xfs_dir_ops *m_dir_inode_ops; /* vector of dir inode ops */159159 uint m_chsize; /* size of next field */160160 atomic_t m_active_trans; /* number trans frozen */161161 struct xfs_mru_cache *m_filestream; /* per-mount filestream data */