diff options
Diffstat (limited to 'fs/xfs/xfs_bmap_util.h')
-rw-r--r-- | fs/xfs/xfs_bmap_util.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/xfs/xfs_bmap_util.h b/fs/xfs/xfs_bmap_util.h index 0eaa81dc49be..7d330b3c77c3 100644 --- a/fs/xfs/xfs_bmap_util.h +++ b/fs/xfs/xfs_bmap_util.h | |||
@@ -28,7 +28,20 @@ struct xfs_mount; | |||
28 | struct xfs_trans; | 28 | struct xfs_trans; |
29 | struct xfs_bmalloca; | 29 | struct xfs_bmalloca; |
30 | 30 | ||
31 | #ifdef CONFIG_XFS_RT | ||
31 | int xfs_bmap_rtalloc(struct xfs_bmalloca *ap); | 32 | int xfs_bmap_rtalloc(struct xfs_bmalloca *ap); |
33 | #else /* !CONFIG_XFS_RT */ | ||
34 | /* | ||
35 | * Attempts to allocate RT extents when RT is disable indicates corruption and | ||
36 | * should trigger a shutdown. | ||
37 | */ | ||
38 | static inline int | ||
39 | xfs_bmap_rtalloc(struct xfs_bmalloca *ap) | ||
40 | { | ||
41 | return -EFSCORRUPTED; | ||
42 | } | ||
43 | #endif /* CONFIG_XFS_RT */ | ||
44 | |||
32 | int xfs_bmap_eof(struct xfs_inode *ip, xfs_fileoff_t endoff, | 45 | int xfs_bmap_eof(struct xfs_inode *ip, xfs_fileoff_t endoff, |
33 | int whichfork, int *eof); | 46 | int whichfork, int *eof); |
34 | int xfs_bmap_punch_delalloc_range(struct xfs_inode *ip, | 47 | int xfs_bmap_punch_delalloc_range(struct xfs_inode *ip, |