diff options
author | Dave Hansen <haveblue@us.ibm.com> | 2008-02-15 23:38:01 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-04-19 06:29:28 +0200 |
commit | ad775f5a8faa5845377f093ca11caf577404add9 (patch) | |
tree | f124ff1038672b8d2ef004d75c844f740d8fe52b /net/decnet | |
parent | [PATCH] r/o bind mounts: honor mount writer counts at remount (diff) | |
download | linux-ad775f5a8faa5845377f093ca11caf577404add9.tar.xz linux-ad775f5a8faa5845377f093ca11caf577404add9.zip |
[PATCH] r/o bind mounts: debugging for missed calls
There have been a few oopses caused by 'struct file's with NULL f_vfsmnts.
There was also a set of potentially missed mnt_want_write()s from
dentry_open() calls.
This patch provides a very simple debugging framework to catch these kinds of
bugs. It will WARN_ON() them, but should stop us from having any oopses or
mnt_writer count imbalances.
I'm quite convinced that this is a good thing because it found bugs in the
stuff I was working on as soon as I wrote it.
[hch: made it conditional on a debug option.
But it's still a little bit too ugly]
[hch: merged forced remount r/o fix from Dave and akpm's fix for the fix]
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/decnet')
0 files changed, 0 insertions, 0 deletions