Commit 66beed5
nfs: don't return AOP_WRITEPAGE_ACTIVATE from nfs_do_writepage
nfs_do_writepage is a successful return that requires the caller to
unlock the folio. Using it here requires special casing both in
nfs_do_writepage and nfs_writepages_callback and leaves a land mine in
nfs_wb_folio in case it ever set the flag. Remove it and just
unconditionally unlock in nfs_writepages_callback.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>1 parent b6354e6 commit 66beed5
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
667 | | - | |
668 | 666 | | |
669 | 667 | | |
670 | 668 | | |
| |||
703 | 701 | | |
704 | 702 | | |
705 | 703 | | |
706 | | - | |
707 | | - | |
| 704 | + | |
708 | 705 | | |
709 | 706 | | |
710 | 707 | | |
| |||
0 commit comments