diff options
author | Christoph Hellwig <hch@lst.de> | 2023-08-01 19:21:57 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-08-02 09:13:09 -0600 |
commit | 2ba39cc46bfe463cb9673bf62a04c4c21942f1f2 (patch) | |
tree | 6484eb5bd2712c056a9bc03e32ea9f3b9e219c75 /fs/nilfs2/file.c | |
parent | 4a8b719f95c0dcd15fb7a04b806ad8139fa7c850 (diff) | |
download | linux-2ba39cc46bfe463cb9673bf62a04c4c21942f1f2.tar.gz linux-2ba39cc46bfe463cb9673bf62a04c4c21942f1f2.tar.bz2 linux-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/nilfs2/file.c')
-rw-r--r-- | fs/nilfs2/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/file.c b/fs/nilfs2/file.c index a9eb3487efb2..740ce26d1e76 100644 --- a/fs/nilfs2/file.c +++ b/fs/nilfs2/file.c @@ -108,7 +108,7 @@ static vm_fault_t nilfs_page_mkwrite(struct vm_fault *vmf) wait_for_stable_page(page); out: sb_end_pagefault(inode->i_sb); - return block_page_mkwrite_return(ret); + return vmf_fs_error(ret); } static const struct vm_operations_struct nilfs_file_vm_ops = { |