diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-09-07 13:34:01 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-09-13 11:41:44 +0900 |
| commit | 1923eeffa63edeff427d76fc302bc5eb835771ce (patch) | |
| tree | 1b2a3b68b8ead41f82ed90f1426a6b5e201216d4 | |
| parent | 91709ba5d6d709b2b663287b7e871e2c6b480502 (diff) | |
| download | linux-next-1923eeffa63edeff427d76fc302bc5eb835771ce.tar.gz linux-next-1923eeffa63edeff427d76fc302bc5eb835771ce.zip | |
ntfs: propagate folio errors
Return the error from __filemap_get_folio() instead of replacing it
with -ENOMEM.
Fixes: af0db57d4293 ("ntfs: update inode operations")
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
| -rw-r--r-- | fs/ntfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c index 5d9d48135ecd..0a0b7c5547f7 100644 --- a/fs/ntfs/inode.c +++ b/fs/ntfs/inode.c @@ -3713,7 +3713,7 @@ static s64 __ntfs_inode_non_resident_attr_pwrite(struct inode *vi, FGP_CREAT | FGP_LOCK, mapping_gfp_mask(mapping)); if (IS_ERR(folio)) { - ret = -ENOMEM; + ret = PTR_ERR(folio); break; } } else { |
