Repository navigation
Commit 7ea88e2
null_blk: create a helper for mem-backed ops
This patch creates a helper for handling requests when null_blk is
memory backed in the null_handle_cmd(). Although the helper is very
simple right now, it makes the code flow consistent with the rest of
code in the null_handle_cmd() and provides a uniform code structure
for future code.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 8f94d1c commit 7ea88e2
1 file changed
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1168 | 1168 | | |
1169 | 1169 | | |
1170 | 1170 | | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
1171 | 1185 | | |
1172 | 1186 | | |
1173 | 1187 | | |
1174 | 1188 | | |
1175 | 1189 | | |
1176 | 1190 | | |
1177 | | - | |
1178 | 1191 | | |
1179 | 1192 | | |
1180 | 1193 | | |
| |||
1193 | 1206 | | |
1194 | 1207 | | |
1195 | 1208 | | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
| 1209 | + | |
| 1210 | + | |
1204 | 1211 | | |
1205 | 1212 | | |
1206 | 1213 | | |
| |||
0 commit comments