/* Direct lock must be taken before the extent lock. */
        if (nowait) {
-               if (!try_lock_dio_extent(io_tree, lockstart, lockend, cached_state))
+               if (!btrfs_try_lock_dio_extent(io_tree, lockstart, lockend, cached_state))
                        return -EAGAIN;
        } else {
-               lock_dio_extent(io_tree, lockstart, lockend, cached_state);
+               btrfs_lock_dio_extent(io_tree, lockstart, lockend, cached_state);
        }
 
        while (1) {
        }
 
        if (ret)
-               unlock_dio_extent(io_tree, lockstart, lockend, cached_state);
+               btrfs_unlock_dio_extent(io_tree, lockstart, lockend, cached_state);
        return ret;
 }
 
 
        /* We didn't use everything, unlock the dio extent for the remainder. */
        if (!write && (start + len) < lockend)
-               unlock_dio_extent(&BTRFS_I(inode)->io_tree, start + len,
-                                 lockend, NULL);
+               btrfs_unlock_dio_extent(&BTRFS_I(inode)->io_tree, start + len,
+                                       lockend, NULL);
 
        return 0;
 
 
        if (!write && (iomap->type == IOMAP_HOLE)) {
                /* If reading from a hole, unlock and return */
-               unlock_dio_extent(&BTRFS_I(inode)->io_tree, pos,
-                                 pos + length - 1, NULL);
+               btrfs_unlock_dio_extent(&BTRFS_I(inode)->io_tree, pos,
+                                       pos + length - 1, NULL);
                return 0;
        }
 
                        btrfs_finish_ordered_extent(dio_data->ordered, NULL,
                                                    pos, length, false);
                else
-                       unlock_dio_extent(&BTRFS_I(inode)->io_tree, pos,
-                                         pos + length - 1, NULL);
+                       btrfs_unlock_dio_extent(&BTRFS_I(inode)->io_tree, pos,
+                                               pos + length - 1, NULL);
                ret = -ENOTBLK;
        }
        if (write) {
                                            dip->file_offset, dip->bytes,
                                            !bio->bi_status);
        } else {
-               unlock_dio_extent(&inode->io_tree, dip->file_offset,
-                                 dip->file_offset + dip->bytes - 1, NULL);
+               btrfs_unlock_dio_extent(&inode->io_tree, dip->file_offset,
+                                       dip->file_offset + dip->bytes - 1, NULL);
        }
 
        bbio->bio.bi_private = bbio->private;
 
 bool btrfs_find_delalloc_range(struct extent_io_tree *tree, u64 *start,
                               u64 *end, u64 max_bytes,
                               struct extent_state **cached_state);
-static inline int lock_dio_extent(struct extent_io_tree *tree, u64 start,
-                                 u64 end, struct extent_state **cached)
+static inline int btrfs_lock_dio_extent(struct extent_io_tree *tree, u64 start,
+                                       u64 end, struct extent_state **cached)
 {
        return __lock_extent(tree, start, end, EXTENT_DIO_LOCKED, cached);
 }
 
-static inline bool try_lock_dio_extent(struct extent_io_tree *tree, u64 start,
-                                      u64 end, struct extent_state **cached)
+static inline bool btrfs_try_lock_dio_extent(struct extent_io_tree *tree, u64 start,
+                                            u64 end, struct extent_state **cached)
 {
        return __try_lock_extent(tree, start, end, EXTENT_DIO_LOCKED, cached);
 }
 
-static inline int unlock_dio_extent(struct extent_io_tree *tree, u64 start,
-                                   u64 end, struct extent_state **cached)
+static inline int btrfs_unlock_dio_extent(struct extent_io_tree *tree, u64 start,
+                                         u64 end, struct extent_state **cached)
 {
        return __clear_extent_bit(tree, start, end, EXTENT_DIO_LOCKED, cached, NULL);
 }