diff options
author | Bodo Stroesser <bostroesser@gmail.com> | 2021-03-24 20:57:54 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-04-12 22:40:55 -0400 |
commit | 8b084d9dfb0158362c3be6ee7fdc8c8320a0ba30 (patch) | |
tree | dd97c57a191f817f97f57fb31ade9bc853254fa2 /block/cmdline-parser.c | |
parent | ecddbb7e945daabdf28a29b95c4a2d88d166a891 (diff) | |
download | lwn-8b084d9dfb0158362c3be6ee7fdc8c8320a0ba30.tar.gz lwn-8b084d9dfb0158362c3be6ee7fdc8c8320a0ba30.zip |
scsi: target: tcmu: Prepare for PAGE_SIZE != DATA_BLOCK_SIZE
Rename some variables and definitions as a first preparation for
DATA_BLOCK_SIZE != PAGE_SIZE and add the new DATA_PAGES_PER_BLK definition
containing the number of pages per data block.
Rename tcmu_try_get_block_page() to tcmu_try_get_data_page(). Keep name
tcmu_get_block_page() since it will go away in a following commit when
there is only one caller left. Subsequent commits will then add full
support for DATA_PAGES_PER_BLK != 1, which also means DATA_BLOCK_SIZE =
DATA_PAGES_PER_BLK * PAGE_SIZE
Link: https://lore.kernel.org/r/20210324195758.2021-3-bostroesser@gmail.com
Signed-off-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'block/cmdline-parser.c')
0 files changed, 0 insertions, 0 deletions