Commit 14e0077
zloop: use vfs_truncate
While vfs_truncate does various extra checks that we don't really need,
it is always better to use a VFS helper rather than open coding the
logic.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 32be3c0 commit 14e0077
1 file changed
Lines changed: 2 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | 1366 | | |
1381 | 1367 | | |
1382 | 1368 | | |
| |||
1411 | 1397 | | |
1412 | 1398 | | |
1413 | 1399 | | |
1414 | | - | |
| 1400 | + | |
| 1401 | + | |
1415 | 1402 | | |
1416 | 1403 | | |
1417 | 1404 | | |
| |||
0 commit comments