diff options
author | Kari Argillander <kari.argillander@gmail.com> | 2021-09-09 20:09:34 +0200 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2021-09-20 17:53:09 +0200 |
commit | 5d7d6b16bc1dbe0f84997e639c49b5ed98a562f7 (patch) | |
tree | c0cfc33cab3dee9252422978e12cc54181ccccf9 /fs/ntfs3/super.c | |
parent | fs/ntfs3: Change EINVAL to ENOMEM when d_make_root fails (diff) | |
download | linux-5d7d6b16bc1dbe0f84997e639c49b5ed98a562f7.tar.xz linux-5d7d6b16bc1dbe0f84997e639c49b5ed98a562f7.zip |
fs/ntfs3: Remove impossible fault condition in fill_super
Remove root drop when we fault out. This can never happened because
when we allocate root we eather fault when no root or success.
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/super.c')
-rw-r--r-- | fs/ntfs3/super.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index 642bd63932d0..ad185c723c0e 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -1295,12 +1295,6 @@ load_root: out: iput(inode); - - if (sb->s_root) { - d_drop(sb->s_root); - sb->s_root = NULL; - } - return err; } |