summaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-08-01 19:21:57 +0200
committerJens Axboe <axboe@kernel.dk>2023-08-02 09:13:09 -0600
commit2ba39cc46bfe463cb9673bf62a04c4c21942f1f2 (patch)
tree6484eb5bd2712c056a9bc03e32ea9f3b9e219c75 /fs/udf
parent4a8b719f95c0dcd15fb7a04b806ad8139fa7c850 (diff)
downloadlinux-stable-2ba39cc46bfe463cb9673bf62a04c4c21942f1f2.tar.gz
linux-stable-2ba39cc46bfe463cb9673bf62a04c4c21942f1f2.tar.bz2
linux-stable-2ba39cc46bfe463cb9673bf62a04c4c21942f1f2.zip
fs: rename and move block_page_mkwrite_return
block_page_mkwrite_return is neither block nor mkwrite specific, and should not be under CONFIG_BLOCK. Move it to mm.h and rename it to vmf_fs_error. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Link: https://lore.kernel.org/r/20230801172201.1923299-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/file.c b/fs/udf/file.c
index 243840dc83ad..c0e2080e639e 100644
--- a/fs/udf/file.c
+++ b/fs/udf/file.c
@@ -67,7 +67,7 @@ static vm_fault_t udf_page_mkwrite(struct vm_fault *vmf)
err = block_commit_write(page, 0, end);
if (err < 0) {
unlock_page(page);
- ret = block_page_mkwrite_return(err);
+ ret = vmf_fs_error(err);
goto out_unlock;
}
out_dirty: