diff options
author | Dan Carpenter <error27@gmail.com> | 2010-04-21 06:33:54 -0400 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-04-29 09:19:27 -0400 |
commit | 3272c8a57b77a7277a740e211fe12171e4b37e99 (patch) | |
tree | a427d7a9339c9776c566c0321218d062077cd937 /fs | |
parent | 79dba2eaa771c3173957eccfd288e0e0d12e4d3f (diff) |
logfs: testing the wrong variable
There is a typo here. We should test "last" instead of "first".
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Joern Engel <joern@logfs.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/logfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/logfs/super.c b/fs/logfs/super.c index 5866ee6e1327..7fc4625c6f02 100644 --- a/fs/logfs/super.c +++ b/fs/logfs/super.c | |||
@@ -382,7 +382,7 @@ static struct page *find_super_block(struct super_block *sb) | |||
382 | if (!first || IS_ERR(first)) | 382 | if (!first || IS_ERR(first)) |
383 | return NULL; | 383 | return NULL; |
384 | last = super->s_devops->find_last_sb(sb, &super->s_sb_ofs[1]); | 384 | last = super->s_devops->find_last_sb(sb, &super->s_sb_ofs[1]); |
385 | if (!last || IS_ERR(first)) { | 385 | if (!last || IS_ERR(last)) { |
386 | page_cache_release(first); | 386 | page_cache_release(first); |
387 | return NULL; | 387 | return NULL; |
388 | } | 388 | } |