Commit 4fcccc3
committed
netfs: Make the refcounting of netfs_begin_read() easier to use
Make the refcounting of netfs_begin_read() easier to use by not eating the
caller's ref on the netfs_io_request it's given. This makes it easier to
use when we need to look in the request struct after.
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org1 parent 6ba22d8 commit 4fcccc3
3 files changed
Lines changed: 23 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| |||
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
263 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
264 | 267 | | |
265 | 268 | | |
266 | 269 | | |
| |||
429 | 432 | | |
430 | 433 | | |
431 | 434 | | |
| 435 | + | |
432 | 436 | | |
433 | 437 | | |
434 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| |||
657 | 658 | | |
658 | 659 | | |
659 | 660 | | |
660 | | - | |
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | 668 | | |
672 | 669 | | |
673 | 670 | | |
| 671 | + | |
674 | 672 | | |
675 | 673 | | |
676 | 674 | | |
| |||
680 | 678 | | |
681 | 679 | | |
682 | 680 | | |
683 | | - | |
684 | | - | |
685 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
686 | 685 | | |
687 | | - | |
688 | | - | |
689 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
690 | 689 | | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
695 | 694 | | |
696 | 695 | | |
697 | 696 | | |
698 | 697 | | |
699 | 698 | | |
700 | 699 | | |
701 | | - | |
702 | 700 | | |
703 | 701 | | |
704 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
| 75 | + | |
74 | 76 | | |
75 | | - | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
0 commit comments