diff options
Diffstat (limited to 'fs/xfs/xfs_iomap.c')
-rw-r--r-- | fs/xfs/xfs_iomap.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index 72786e356d5..58cda06a184 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -193,7 +193,7 @@ xfs_iomap( | |||
193 | 193 | ||
194 | switch (flags & | 194 | switch (flags & |
195 | (BMAPI_READ | BMAPI_WRITE | BMAPI_ALLOCATE | | 195 | (BMAPI_READ | BMAPI_WRITE | BMAPI_ALLOCATE | |
196 | BMAPI_UNWRITTEN | BMAPI_DEVICE)) { | 196 | BMAPI_UNWRITTEN)) { |
197 | case BMAPI_READ: | 197 | case BMAPI_READ: |
198 | xfs_iomap_enter_trace(XFS_IOMAP_READ_ENTER, io, offset, count); | 198 | xfs_iomap_enter_trace(XFS_IOMAP_READ_ENTER, io, offset, count); |
199 | lockmode = XFS_LCK_MAP_SHARED(mp, io); | 199 | lockmode = XFS_LCK_MAP_SHARED(mp, io); |
@@ -220,13 +220,6 @@ xfs_iomap( | |||
220 | break; | 220 | break; |
221 | case BMAPI_UNWRITTEN: | 221 | case BMAPI_UNWRITTEN: |
222 | goto phase2; | 222 | goto phase2; |
223 | case BMAPI_DEVICE: | ||
224 | lockmode = XFS_LCK_MAP_SHARED(mp, io); | ||
225 | iomapp->iomap_target = io->io_flags & XFS_IOCORE_RT ? | ||
226 | mp->m_rtdev_targp : mp->m_ddev_targp; | ||
227 | error = 0; | ||
228 | *niomaps = 1; | ||
229 | goto out; | ||
230 | default: | 223 | default: |
231 | BUG(); | 224 | BUG(); |
232 | } | 225 | } |