diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2023-01-16 13:03:24 +0400 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2023-03-27 16:59:18 +0400 |
commit | 1842fbc8d25e629e54080fe3c5928d4ce8ccf55a (patch) | |
tree | f732ca28c31c9da8f8ce3ec35e32edbdd1a2817f /fs/ntfs3/file.c | |
parent | 267a36ba30a7425ad59d20e7e7e33bbdcc9cfb0a (diff) |
fs/ntfs3: Fix ntfs_create_inode()
Previous variant creates an inode that requires update the parent directory
(ea_packed_size). Operations in ntfs_create_inode have been rearranged
so we insert new directory entry with correct ea_packed_size and
new created inode does not require update it's parent directory.
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/file.c')
-rw-r--r-- | fs/ntfs3/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c index e4b54d6bcda5..1e8d6a3c9fec 100644 --- a/fs/ntfs3/file.c +++ b/fs/ntfs3/file.c @@ -703,7 +703,7 @@ int ntfs3_setattr(struct mnt_idmap *idmap, struct dentry *dentry, } if (ia_valid & (ATTR_UID | ATTR_GID | ATTR_MODE)) - ntfs_save_wsl_perm(inode); + ntfs_save_wsl_perm(inode, NULL); mark_inode_dirty(inode); out: return err; |