summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_pnfs.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2016-06-21 10:10:38 +1000
committerDave Chinner <david@fromorbit.com>2016-06-21 10:10:38 +1000
commit9b7fad20760b8f47730f0353459dd39a89c415b9 (patch)
treea0465f6d4bb6dceaf3a6412e1c30b31096fdf712 /fs/xfs/xfs_pnfs.c
parent07931b7be70916055b882c6a379a3016f5772681 (diff)
parent3c2bdc912a1cc050db7e858aabe564cb382c9c30 (diff)
downloadlinux-9b7fad20760b8f47730f0353459dd39a89c415b9.tar.gz
linux-9b7fad20760b8f47730f0353459dd39a89c415b9.tar.bz2
linux-9b7fad20760b8f47730f0353459dd39a89c415b9.zip
Merge branch 'xfs-4.8-iomap-write' into for-next
Diffstat (limited to 'fs/xfs/xfs_pnfs.c')
-rw-r--r--fs/xfs/xfs_pnfs.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/fs/xfs/xfs_pnfs.c b/fs/xfs/xfs_pnfs.c
index db3c7df52e30..0f14b2e4bf6c 100644
--- a/fs/xfs/xfs_pnfs.c
+++ b/fs/xfs/xfs_pnfs.c
@@ -80,32 +80,6 @@ xfs_fs_get_uuid(
return 0;
}
-static void
-xfs_bmbt_to_iomap(
- struct xfs_inode *ip,
- struct iomap *iomap,
- struct xfs_bmbt_irec *imap)
-{
- struct xfs_mount *mp = ip->i_mount;
-
- if (imap->br_startblock == HOLESTARTBLOCK) {
- iomap->blkno = IOMAP_NULL_BLOCK;
- iomap->type = IOMAP_HOLE;
- } else if (imap->br_startblock == DELAYSTARTBLOCK) {
- iomap->blkno = IOMAP_NULL_BLOCK;
- iomap->type = IOMAP_DELALLOC;
- } else {
- iomap->blkno =
- XFS_FSB_TO_DADDR(ip->i_mount, imap->br_startblock);
- if (imap->br_state == XFS_EXT_UNWRITTEN)
- iomap->type = IOMAP_UNWRITTEN;
- else
- iomap->type = IOMAP_MAPPED;
- }
- iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff);
- iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount);
-}
-
/*
* Get a layout for the pNFS client.
*/