summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3/file.c
diff options
context:
space:
mode:
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2022-05-12 18:18:11 +0200
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2022-08-03 17:25:04 +0200
commit13747aac8984e069427e5de5d68bb6cefa98551e (patch)
tree9a2994550d067c240fbc61e3bb9171c8db9745a4 /fs/ntfs3/file.c
parentfs/ntfs3: Do not change mode if ntfs_set_ea failed (diff)
downloadlinux-13747aac8984e069427e5de5d68bb6cefa98551e.tar.xz
linux-13747aac8984e069427e5de5d68bb6cefa98551e.zip
fs/ntfs3: Check reserved size for maximum allowed
Also don't mask EFBIG Fixes xfstest generic/485 Fixes: 4342306f0f0d ("fs/ntfs3: Add file operations and implementation") Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/file.c')
-rw-r--r--fs/ntfs3/file.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c
index bdffe4b8554b..cf16bde810cc 100644
--- a/fs/ntfs3/file.c
+++ b/fs/ntfs3/file.c
@@ -733,9 +733,6 @@ out:
if (map_locked)
filemap_invalidate_unlock(mapping);
- if (err == -EFBIG)
- err = -ENOSPC;
-
if (!err) {
inode->i_ctime = inode->i_mtime = current_time(inode);
mark_inode_dirty(inode);