diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2017-01-17 17:53:01 +0100 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-01-17 17:53:01 +0100 |
commit | a9ff720e0fee2f64c279e71c1bf86e93804295d2 (patch) | |
tree | c9d6a77274bcb90142aace2dd4a1c9808a191533 /fs/dcache.c | |
parent | 21e7fbe7db2a983c046a05f12419d88c554a0f5a (diff) | |
parent | 06b35d93af0a5904aa832f58733be84ddbfe2e04 (diff) | |
download | linux-a9ff720e0fee2f64c279e71c1bf86e93804295d2.tar.gz linux-a9ff720e0fee2f64c279e71c1bf86e93804295d2.tar.bz2 linux-a9ff720e0fee2f64c279e71c1bf86e93804295d2.zip |
Merge branch 'x86/cpufeature' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into next
For AVX512_VPOPCNTDQ.
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 769903dbc19d..95d71eda8142 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -1336,8 +1336,11 @@ int d_set_mounted(struct dentry *dentry) } spin_lock(&dentry->d_lock); if (!d_unlinked(dentry)) { - dentry->d_flags |= DCACHE_MOUNTED; - ret = 0; + ret = -EBUSY; + if (!d_mountpoint(dentry)) { + dentry->d_flags |= DCACHE_MOUNTED; + ret = 0; + } } spin_unlock(&dentry->d_lock); out: |