projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
985eafc
)
fat: make sure to set d_ops in fat_get_parent
author
Christoph Hellwig
<hch@lst.de>
Tue, 11 Nov 2008 22:48:01 +0000
(07:48 +0900)
committer
OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp>
Tue, 11 Nov 2008 23:51:22 +0000
(08:51 +0900)
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>
fs/fat/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fat/inode.c
b/fs/fat/inode.c
index bdd8fb7be2ca48e5ac4e49b5b2dd147375f6c8b2..37a8af159a1387b2755a20cf1a54b4557a142e99 100644
(file)
--- a/
fs/fat/inode.c
+++ b/
fs/fat/inode.c
@@
-749,6
+749,8
@@
static struct dentry *fat_get_parent(struct dentry *child)
brelse(bh);
parent = d_obtain_alias(inode);
+ if (!IS_ERR(parent))
+ parent->d_op = sb->s_root->d_op;
out:
unlock_super(sb);