From 56e4c7f24a6c08f2cce086f14ca5bf1772bb6d6f Mon Sep 17 00:00:00 2001 From: john stultz Date: Wed, 12 May 2010 17:45:44 -0700 Subject: 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 Cc: Clark Williams Cc: Darren Hart LKML-Reference: <1273711544.2856.15.camel@localhost.localdomain> Signed-off-by: Thomas Gleixner --- fs/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--; } -- cgit v1.2.3