Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a6bb103 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by OGAWA Hirofumi
Browse files

fat: make sure to set d_ops in fat_get_parent



fat_get_parent needs to setup the dentry operations, otherwise we might
lose them when the NFS server needs to reconnect out of cache inodes.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
parent 985eafcc
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -749,6 +749,8 @@ static struct dentry *fat_get_parent(struct dentry *child)
	brelse(bh);
	brelse(bh);


	parent = d_obtain_alias(inode);
	parent = d_obtain_alias(inode);
	if (!IS_ERR(parent))
		parent->d_op = sb->s_root->d_op;
out:
out:
	unlock_super(sb);
	unlock_super(sb);