diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2013-01-19 18:08:09 +0900 |
---|---|---|
committer | Daniel Phillips <daniel@tux3.org> | 2013-01-19 18:08:09 +0900 |
commit | a6d513e521f20c33296234511064281741ccb080 (patch) | |
tree | cb6160683aed792e028b9b7f5763f804c9722025 | |
parent | 55a8b3fd0549242914082089dcc418bf3a34932c (diff) | |
download | linux-tux3-a6d513e521f20c33296234511064281741ccb080.tar.gz |
tux3: Add assertion to access log block
The log record is generated only by backend. This checks it (Add
assert(tux3_under_backend(sb))) on log_begin().
Other changes are to fix false positive. Some special codes access
backend objects directly. For example, mkfs, test code, etc.
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-rw-r--r-- | fs/tux3/log.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/tux3/log.c b/fs/tux3/log.c index 6eabe2b7eab7fd..f9db1039797907 100644 --- a/fs/tux3/log.c +++ b/fs/tux3/log.c @@ -134,6 +134,7 @@ void log_finish_cycle(struct sb *sb, int discard) static void *log_begin(struct sb *sb, unsigned bytes) { + assert(tux3_under_backend(sb)); if (sb->logpos + bytes > sb->logtop) { log_finish(sb); log_next(sb); |