OSDN Git Service

cifs: stop using generic_writepages
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Nov 2022 13:18:34 +0000 (14:18 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 8 Dec 2022 15:51:53 +0000 (09:51 -0600)
commitbff9018d3a52c45711bd63c446a2c80c0275e935
treea5f78a161637a1535413cd43abd84829f7c9693b
parent9381666e289852f93be9d7f4f7844017e04f6315
cifs: stop using generic_writepages

generic_writepages is just a wrapper that calls ->writepages on a range,
and thus in the way of eventually removing ->writepage.  Switch cifs
to just open code it in preparation of removing ->writepage.

[note: I suspect just integrating the small wsize case with the rest
 of the writeback code might be a better idea here, but that needs
 someone more familiar with the code]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c