Re: [PATCH] NVMe: General code cleanup for reuse.

2015-06-02 Thread Parav Pandit
I am sorry. By mistake sent the same patch which was already sent few days back. Its pending for merge. On Tue, Jun 2, 2015 at 7:41 PM, Parav Pandit wrote: > From: Parav Pandit > > Moved code for reusing at few places: > 1. Moved lba_shift related calculation code to macro for converting block

[PATCH] NVMe: General code cleanup for reuse.

2015-06-02 Thread Parav Pandit
From: Parav Pandit Moved code for reusing at few places: 1. Moved lba_shift related calculation code to macro for converting block to/from len. 2. Moved req_len to nlb calculation to inline function. Signed-off-by: Parav Pandit --- drivers/block/nvme-core.c | 10 +- drivers/block/nvme

[PATCH] NVMe: General code cleanup for reuse.

2015-05-20 Thread Parav Pandit
Moved code for reusing at few places: 1. Moved lba_shift related calculation code to macro for converting block to/from len. 2. Moved req_len to nlb calculation to inline function. Signed-off-by: Parav Pandit --- drivers/block/nvme-core.c | 10 +- drivers/block/nvme-scsi.c | 10 +---