summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-09-14 14:14:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-14 15:06:21 +0200
commit86bdbff94565363a9b53f9c3f48bbef549a61607 (patch)
tree23f7f978151867a619e73bf34a4cbb0450f09ce4 /fs
parent29f1c211d86ca09709f816722131240df49133c7 (diff)
downloadbarebox-86bdbff94565363a9b53f9c3f48bbef549a61607.tar.gz
barebox-86bdbff94565363a9b53f9c3f48bbef549a61607.tar.xz
fs: Drop unnecessary dput()
Calling dput() on the root dentry during unmount time is unnecessary, the dentry will be removed later in dentry_delete_subtree() anyway. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/fs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 30b835e265..a6c6f0cc93 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -667,7 +667,6 @@ static void fs_remove(struct device_d *dev)
if (fsdev->loop && fsdev->cdev)
cdev_remove_loop(fsdev->cdev);
- dput(sb->s_root);
dentry_delete_subtree(sb, sb->s_root);
list_for_each_entry_safe(inode, tmp, &sb->s_inodes, i_sb_list)