]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/nvme/host/nvme.h
Merge branch 'for-4.11/block' into for-4.11/linus-merge
[karo-tx-linux.git] / drivers / nvme / host / nvme.h
index b0977229e219994e8e1aa1ba737d0e0b6735a6ca..14cfc6f7facb240a96630a637ccc60bd45911302 100644 (file)
@@ -229,14 +229,6 @@ static inline u64 nvme_block_nr(struct nvme_ns *ns, sector_t sector)
        return (sector >> (ns->lba_shift - 9));
 }
 
-static inline unsigned nvme_map_len(struct request *rq)
-{
-       if (req_op(rq) == REQ_OP_DISCARD)
-               return sizeof(struct nvme_dsm_range);
-       else
-               return blk_rq_bytes(rq);
-}
-
 static inline void nvme_cleanup_cmd(struct request *req)
 {
        if (req->rq_flags & RQF_SPECIAL_PAYLOAD) {