diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 04:29:00 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 04:29:00 -0500 |
| commit | 9caafa6c8686e319cf4d5f3757b3972c6c522b7c (patch) | |
| tree | b38979b835b5d22e681b175d0b98a3c7560d9c59 /fs/ocfs2/sysfile.c | |
| parent | 51e9f2ff83df6b1c81c5c44f4486c68ed87aa20e (diff) | |
| parent | cac0e8e8bb2e7a086643bdd00c41d900a79bb4fa (diff) | |
Merge branch 'upstream-fixes'
Diffstat (limited to 'fs/ocfs2/sysfile.c')
| -rw-r--r-- | fs/ocfs2/sysfile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ocfs2/sysfile.c b/fs/ocfs2/sysfile.c index 600a8bc5b541..fc29cb7a437d 100644 --- a/fs/ocfs2/sysfile.c +++ b/fs/ocfs2/sysfile.c | |||
| @@ -77,8 +77,7 @@ struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb, | |||
| 77 | if (arr && ((inode = *arr) != NULL)) { | 77 | if (arr && ((inode = *arr) != NULL)) { |
| 78 | /* get a ref in addition to the array ref */ | 78 | /* get a ref in addition to the array ref */ |
| 79 | inode = igrab(inode); | 79 | inode = igrab(inode); |
| 80 | if (!inode) | 80 | BUG_ON(!inode); |
| 81 | BUG(); | ||
| 82 | 81 | ||
| 83 | return inode; | 82 | return inode; |
| 84 | } | 83 | } |
| @@ -89,8 +88,7 @@ struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb, | |||
| 89 | /* add one more if putting into array for first time */ | 88 | /* add one more if putting into array for first time */ |
| 90 | if (arr && inode) { | 89 | if (arr && inode) { |
| 91 | *arr = igrab(inode); | 90 | *arr = igrab(inode); |
| 92 | if (!*arr) | 91 | BUG_ON(!*arr); |
| 93 | BUG(); | ||
| 94 | } | 92 | } |
| 95 | return inode; | 93 | return inode; |
| 96 | } | 94 | } |
