xfs: refactor the ifork block counting function
[sfrench/cifs-2.6.git] / fs / xfs / xfs_bmap_util.h
index 135d8267e2846b2552f6ae426cac1a8c41877f74..0cede104357170425e1864d63cc934596977a166 100644 (file)
@@ -70,4 +70,8 @@ int   xfs_swap_extents(struct xfs_inode *ip, struct xfs_inode *tip,
 
 xfs_daddr_t xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb);
 
+int xfs_bmap_count_blocks(struct xfs_trans *tp, struct xfs_inode *ip,
+                         int whichfork, xfs_extnum_t *nextents,
+                         xfs_filblks_t *count);
+
 #endif /* __XFS_BMAP_UTIL_H__ */