mirror of
https://github.com/torvalds/linux.git
synced 2026-09-26 01:52:03 +02:00
ntfs: propagate folio errors
Return the error from __filemap_get_folio() instead of replacing it
with -ENOMEM.
Fixes: af0db57d42 ("ntfs: update inode operations")
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
parent
91709ba5d6
commit
1923eeffa6
|
|
@ -3713,7 +3713,7 @@ static s64 __ntfs_inode_non_resident_attr_pwrite(struct inode *vi,
|
||||||
FGP_CREAT | FGP_LOCK,
|
FGP_CREAT | FGP_LOCK,
|
||||||
mapping_gfp_mask(mapping));
|
mapping_gfp_mask(mapping));
|
||||||
if (IS_ERR(folio)) {
|
if (IS_ERR(folio)) {
|
||||||
ret = -ENOMEM;
|
ret = PTR_ERR(folio);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user