diff options
author | john stultz <johnstul@us.ibm.com> | 2010-05-12 17:45:44 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-05-13 14:05:54 +0200 |
commit | 56e4c7f24a6c08f2cce086f14ca5bf1772bb6d6f (patch) | |
tree | dd884f0db886551dbbc19ac37ce6c67a956a90c7 | |
parent | 1540c84b5ed657ed71dce06915bba461e6b09574 (diff) | |
download | lwn-56e4c7f24a6c08f2cce086f14ca5bf1772bb6d6f.tar.gz lwn-56e4c7f24a6c08f2cce086f14ca5bf1772bb6d6f.zip |
fs: Fix mnt_count typo
Clark noticed the following snippit in commit
070976b5b038218900648ea4cc88786d5dfcd58d :
if (mnt->mnt_pinned) {
- inc_mnt_count(mnt);
+ preempt_disable();
+ dec_mnt_count(mnt);
+ preempt_enable();
mnt->mnt_pinned--;
}
vfsmount_write_unlock();
I accidentally replaced an inc_mnt_count() with a dec_mnt_count().
The issue went unnoticed, as the only user of mnt_unpin in the acct
syscall.
This patch corrects the mistake.
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Cc: Clark Williams <williams@redhat.com>
Cc: Darren Hart <dvhltc@us.ibm.com>
LKML-Reference: <1273711544.2856.15.camel@localhost.localdomain>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | fs/namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 35c56c2af61b..ed4a3eaac48d 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -825,7 +825,7 @@ void mnt_unpin(struct vfsmount *mnt) vfsmount_write_lock(); if (mnt->mnt_pinned) { preempt_disable(); - dec_mnt_count(mnt); + inc_mnt_count(mnt); preempt_enable(); mnt->mnt_pinned--; } |