diff options
Diffstat (limited to 'fs/xfs/xfs_rw.h')
-rw-r--r-- | fs/xfs/xfs_rw.h | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/fs/xfs/xfs_rw.h b/fs/xfs/xfs_rw.h index f5e4874c37d8..571f2174435c 100644 --- a/fs/xfs/xfs_rw.h +++ b/fs/xfs/xfs_rw.h | |||
@@ -37,34 +37,6 @@ xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb) | |||
37 | } | 37 | } |
38 | 38 | ||
39 | /* | 39 | /* |
40 | * Flags for xfs_free_eofblocks | ||
41 | */ | ||
42 | #define XFS_FREE_EOF_LOCK (1<<0) | ||
43 | #define XFS_FREE_EOF_NOLOCK (1<<1) | ||
44 | |||
45 | |||
46 | /* | ||
47 | * helper function to extract extent size hint from inode | ||
48 | */ | ||
49 | STATIC_INLINE xfs_extlen_t | ||
50 | xfs_get_extsz_hint( | ||
51 | xfs_inode_t *ip) | ||
52 | { | ||
53 | xfs_extlen_t extsz; | ||
54 | |||
55 | if (unlikely(XFS_IS_REALTIME_INODE(ip))) { | ||
56 | extsz = (ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE) | ||
57 | ? ip->i_d.di_extsize | ||
58 | : ip->i_mount->m_sb.sb_rextsize; | ||
59 | ASSERT(extsz); | ||
60 | } else { | ||
61 | extsz = (ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE) | ||
62 | ? ip->i_d.di_extsize : 0; | ||
63 | } | ||
64 | return extsz; | ||
65 | } | ||
66 | |||
67 | /* | ||
68 | * Prototypes for functions in xfs_rw.c. | 40 | * Prototypes for functions in xfs_rw.c. |
69 | */ | 41 | */ |
70 | extern int xfs_write_clear_setuid(struct xfs_inode *ip); | 42 | extern int xfs_write_clear_setuid(struct xfs_inode *ip); |
@@ -76,5 +48,6 @@ extern int xfs_read_buf(struct xfs_mount *mp, xfs_buftarg_t *btp, | |||
76 | struct xfs_buf **bpp); | 48 | struct xfs_buf **bpp); |
77 | extern void xfs_ioerror_alert(char *func, struct xfs_mount *mp, | 49 | extern void xfs_ioerror_alert(char *func, struct xfs_mount *mp, |
78 | xfs_buf_t *bp, xfs_daddr_t blkno); | 50 | xfs_buf_t *bp, xfs_daddr_t blkno); |
51 | extern xfs_extlen_t xfs_get_extsz_hint(struct xfs_inode *ip); | ||
79 | 52 | ||
80 | #endif /* __XFS_RW_H__ */ | 53 | #endif /* __XFS_RW_H__ */ |