diff options
Diffstat (limited to 'fs/xfs/xfs_mount.h')
| -rw-r--r-- | fs/xfs/xfs_mount.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h index 63e0693a358a..5269bd6e3df0 100644 --- a/fs/xfs/xfs_mount.h +++ b/fs/xfs/xfs_mount.h | |||
| @@ -61,6 +61,7 @@ struct xfs_bmap_free; | |||
| 61 | struct xfs_extdelta; | 61 | struct xfs_extdelta; |
| 62 | struct xfs_swapext; | 62 | struct xfs_swapext; |
| 63 | struct xfs_mru_cache; | 63 | struct xfs_mru_cache; |
| 64 | struct xfs_nameops; | ||
| 64 | 65 | ||
| 65 | /* | 66 | /* |
| 66 | * Prototypes and functions for the Data Migration subsystem. | 67 | * Prototypes and functions for the Data Migration subsystem. |
| @@ -210,12 +211,14 @@ typedef struct xfs_icsb_cnts { | |||
| 210 | 211 | ||
| 211 | extern int xfs_icsb_init_counters(struct xfs_mount *); | 212 | extern int xfs_icsb_init_counters(struct xfs_mount *); |
| 212 | extern void xfs_icsb_reinit_counters(struct xfs_mount *); | 213 | extern void xfs_icsb_reinit_counters(struct xfs_mount *); |
| 214 | extern void xfs_icsb_destroy_counters(struct xfs_mount *); | ||
| 213 | extern void xfs_icsb_sync_counters(struct xfs_mount *, int); | 215 | extern void xfs_icsb_sync_counters(struct xfs_mount *, int); |
| 214 | extern void xfs_icsb_sync_counters_locked(struct xfs_mount *, int); | 216 | extern void xfs_icsb_sync_counters_locked(struct xfs_mount *, int); |
| 215 | 217 | ||
| 216 | #else | 218 | #else |
| 217 | #define xfs_icsb_init_counters(mp) (0) | 219 | #define xfs_icsb_init_counters(mp) (0) |
| 218 | #define xfs_icsb_reinit_counters(mp) do { } while (0) | 220 | #define xfs_icsb_destroy_counters(mp) do { } while (0) |
| 221 | #define xfs_icsb_reinit_counters(mp) do { } while (0) | ||
| 219 | #define xfs_icsb_sync_counters(mp, flags) do { } while (0) | 222 | #define xfs_icsb_sync_counters(mp, flags) do { } while (0) |
| 220 | #define xfs_icsb_sync_counters_locked(mp, flags) do { } while (0) | 223 | #define xfs_icsb_sync_counters_locked(mp, flags) do { } while (0) |
| 221 | #endif | 224 | #endif |
| @@ -313,6 +316,7 @@ typedef struct xfs_mount { | |||
| 313 | __uint8_t m_inode_quiesce;/* call quiesce on new inodes. | 316 | __uint8_t m_inode_quiesce;/* call quiesce on new inodes. |
| 314 | field governed by m_ilock */ | 317 | field governed by m_ilock */ |
| 315 | __uint8_t m_sectbb_log; /* sectlog - BBSHIFT */ | 318 | __uint8_t m_sectbb_log; /* sectlog - BBSHIFT */ |
| 319 | const struct xfs_nameops *m_dirnameops; /* vector of dir name ops */ | ||
| 316 | int m_dirblksize; /* directory block sz--bytes */ | 320 | int m_dirblksize; /* directory block sz--bytes */ |
| 317 | int m_dirblkfsbs; /* directory block sz--fsbs */ | 321 | int m_dirblkfsbs; /* directory block sz--fsbs */ |
| 318 | xfs_dablk_t m_dirdatablk; /* blockno of dir data v2 */ | 322 | xfs_dablk_t m_dirdatablk; /* blockno of dir data v2 */ |
| @@ -378,6 +382,7 @@ typedef struct xfs_mount { | |||
| 378 | counters */ | 382 | counters */ |
| 379 | #define XFS_MOUNT_FILESTREAMS (1ULL << 24) /* enable the filestreams | 383 | #define XFS_MOUNT_FILESTREAMS (1ULL << 24) /* enable the filestreams |
| 380 | allocator */ | 384 | allocator */ |
| 385 | #define XFS_MOUNT_NOATTR2 (1ULL << 25) /* disable use of attr2 format */ | ||
| 381 | 386 | ||
| 382 | 387 | ||
| 383 | /* | 388 | /* |
| @@ -510,15 +515,12 @@ typedef struct xfs_mod_sb { | |||
| 510 | #define XFS_MOUNT_ILOCK(mp) mutex_lock(&((mp)->m_ilock)) | 515 | #define XFS_MOUNT_ILOCK(mp) mutex_lock(&((mp)->m_ilock)) |
| 511 | #define XFS_MOUNT_IUNLOCK(mp) mutex_unlock(&((mp)->m_ilock)) | 516 | #define XFS_MOUNT_IUNLOCK(mp) mutex_unlock(&((mp)->m_ilock)) |
| 512 | 517 | ||
| 513 | extern xfs_mount_t *xfs_mount_init(void); | ||
| 514 | extern void xfs_mod_sb(xfs_trans_t *, __int64_t); | 518 | extern void xfs_mod_sb(xfs_trans_t *, __int64_t); |
| 515 | extern int xfs_log_sbcount(xfs_mount_t *, uint); | 519 | extern int xfs_log_sbcount(xfs_mount_t *, uint); |
| 516 | extern void xfs_mount_free(xfs_mount_t *mp); | ||
| 517 | extern int xfs_mountfs(xfs_mount_t *mp, int); | 520 | extern int xfs_mountfs(xfs_mount_t *mp, int); |
| 518 | extern void xfs_mountfs_check_barriers(xfs_mount_t *mp); | 521 | extern void xfs_mountfs_check_barriers(xfs_mount_t *mp); |
| 519 | 522 | ||
| 520 | extern int xfs_unmountfs(xfs_mount_t *, struct cred *); | 523 | extern int xfs_unmountfs(xfs_mount_t *); |
| 521 | extern void xfs_unmountfs_close(xfs_mount_t *, struct cred *); | ||
| 522 | extern int xfs_unmountfs_writesb(xfs_mount_t *); | 524 | extern int xfs_unmountfs_writesb(xfs_mount_t *); |
| 523 | extern int xfs_unmount_flush(xfs_mount_t *, int); | 525 | extern int xfs_unmount_flush(xfs_mount_t *, int); |
| 524 | extern int xfs_mod_incore_sb(xfs_mount_t *, xfs_sb_field_t, int64_t, int); | 526 | extern int xfs_mod_incore_sb(xfs_mount_t *, xfs_sb_field_t, int64_t, int); |
| @@ -544,9 +546,6 @@ extern void xfs_qmops_put(struct xfs_mount *); | |||
| 544 | 546 | ||
| 545 | extern struct xfs_dmops xfs_dmcore_xfs; | 547 | extern struct xfs_dmops xfs_dmcore_xfs; |
| 546 | 548 | ||
| 547 | extern int xfs_init(void); | ||
| 548 | extern void xfs_cleanup(void); | ||
| 549 | |||
| 550 | #endif /* __KERNEL__ */ | 549 | #endif /* __KERNEL__ */ |
| 551 | 550 | ||
| 552 | #endif /* __XFS_MOUNT_H__ */ | 551 | #endif /* __XFS_MOUNT_H__ */ |
