diff options
author | Christoph Hellwig <hch@lst.de> | 2008-11-11 17:48:01 -0500 |
---|---|---|
committer | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2008-11-11 18:51:22 -0500 |
commit | 5a6bb10393eb9a1985e97af12f0cb2906bcbf1af (patch) | |
tree | 66fa9d4dd4c2469d871d4a452634f8ed2f3ada7b /fs/fat | |
parent | 985eafcc5480b0d98419b96869f2560abb2764c7 (diff) |
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: Christoph Hellwig <hch@lst.de>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index bdd8fb7be2c..37a8af159a1 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -749,6 +749,8 @@ static struct dentry *fat_get_parent(struct dentry *child) | |||
749 | brelse(bh); | 749 | brelse(bh); |
750 | 750 | ||
751 | parent = d_obtain_alias(inode); | 751 | parent = d_obtain_alias(inode); |
752 | if (!IS_ERR(parent)) | ||
753 | parent->d_op = sb->s_root->d_op; | ||
752 | out: | 754 | out: |
753 | unlock_super(sb); | 755 | unlock_super(sb); |
754 | 756 | ||