aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohn stultz <johnstul@us.ibm.com>2010-05-12 17:45:44 -0700
committerThomas Gleixner <tglx@linutronix.de>2010-05-13 14:05:54 +0200
commit56e4c7f24a6c08f2cce086f14ca5bf1772bb6d6f (patch)
treedd884f0db886551dbbc19ac37ce6c67a956a90c7
parent1540c84b5ed657ed71dce06915bba461e6b09574 (diff)
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.c2
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--;
}