diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 19:35:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 19:35:11 -0400 |
commit | 708e16892e1646594a29eaa7ac7b209b600b9fd2 (patch) | |
tree | fe7c31bc0edef84eb1075c7e195340047d6aaa17 /fs | |
parent | f3c87a8999c28f2948ebd407574f7e9fb5c577b2 (diff) | |
parent | a847825970e741e20a09c659978baa34016b63bc (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial
* git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (39 commits)
Add missing maintainer countries in CREDITS
Fix bytes <-> kilobytes typo in Kconfig for ramdisk
fix a typo in Documentation/pi-futex.txt
BUG_ON conversion for fs/xfs/
BUG_ON() conversion in fs/nfsd/
BUG_ON conversion for fs/reiserfs
BUG_ON cleanups in arch/i386
BUG_ON cleanup in drivers/net/tokenring/
BUG_ON cleanup for drivers/md/
kerneldoc-typo in led-class.c
debugfs: spelling fix
rcutorture: Fix incorrect description of default for nreaders parameter
parport: Remove space in function calls
Michal Wronski: update contact info
Spelling fix: "control" instead of "cotrol"
reboot parameter in Documentation/kernel-parameters.txt
Fix copy&waste bug in comment in scripts/kernel-doc
remove duplicate "until" from kernel/workqueue.c
ite_gpio fix tabbage
fix file specification in comments
...
Fixed trivial path conflicts due to removed files:
arch/mips/dec/boot/decstation.c, drivers/char/ite_gpio.c
Diffstat (limited to 'fs')
56 files changed, 88 insertions, 119 deletions
diff --git a/fs/Kconfig b/fs/Kconfig index 1453d2d164f7..68f4561423ff 100644 --- a/fs/Kconfig +++ b/fs/Kconfig | |||
@@ -74,11 +74,11 @@ config EXT3_FS | |||
74 | tristate "Ext3 journalling file system support" | 74 | tristate "Ext3 journalling file system support" |
75 | select JBD | 75 | select JBD |
76 | help | 76 | help |
77 | This is the journaling version of the Second extended file system | 77 | This is the journalling version of the Second extended file system |
78 | (often called ext3), the de facto standard Linux file system | 78 | (often called ext3), the de facto standard Linux file system |
79 | (method to organize files on a storage device) for hard disks. | 79 | (method to organize files on a storage device) for hard disks. |
80 | 80 | ||
81 | The journaling code included in this driver means you do not have | 81 | The journalling code included in this driver means you do not have |
82 | to run e2fsck (file system checker) on your file systems after a | 82 | to run e2fsck (file system checker) on your file systems after a |
83 | crash. The journal keeps track of any changes that were being made | 83 | crash. The journal keeps track of any changes that were being made |
84 | at the time the system crashed, and can ensure that your file system | 84 | at the time the system crashed, and can ensure that your file system |
@@ -143,7 +143,7 @@ config EXT3_FS_SECURITY | |||
143 | config JBD | 143 | config JBD |
144 | tristate | 144 | tristate |
145 | help | 145 | help |
146 | This is a generic journaling layer for block devices. It is | 146 | This is a generic journalling layer for block devices. It is |
147 | currently used by the ext3 and OCFS2 file systems, but it could | 147 | currently used by the ext3 and OCFS2 file systems, but it could |
148 | also be used to add journal support to other file systems or block | 148 | also be used to add journal support to other file systems or block |
149 | devices such as RAID or LVM. | 149 | devices such as RAID or LVM. |
@@ -183,7 +183,7 @@ config REISERFS_FS | |||
183 | tristate "Reiserfs support" | 183 | tristate "Reiserfs support" |
184 | help | 184 | help |
185 | Stores not just filenames but the files themselves in a balanced | 185 | Stores not just filenames but the files themselves in a balanced |
186 | tree. Uses journaling. | 186 | tree. Uses journalling. |
187 | 187 | ||
188 | Balanced trees are more efficient than traditional file system | 188 | Balanced trees are more efficient than traditional file system |
189 | architectural foundations. | 189 | architectural foundations. |
@@ -1032,7 +1032,7 @@ config BEFS_FS | |||
1032 | on files and directories, and database-like indeces on selected | 1032 | on files and directories, and database-like indeces on selected |
1033 | attributes. (Also note that this driver doesn't make those features | 1033 | attributes. (Also note that this driver doesn't make those features |
1034 | available at this time). It is a 64 bit filesystem, so it supports | 1034 | available at this time). It is a 64 bit filesystem, so it supports |
1035 | extremly large volumes and files. | 1035 | extremely large volumes and files. |
1036 | 1036 | ||
1037 | If you use this filesystem, you should also say Y to at least one | 1037 | If you use this filesystem, you should also say Y to at least one |
1038 | of the NLS (native language support) options below. | 1038 | of the NLS (native language support) options below. |
@@ -1090,7 +1090,7 @@ config JFFS_FS | |||
1090 | tristate "Journalling Flash File System (JFFS) support" | 1090 | tristate "Journalling Flash File System (JFFS) support" |
1091 | depends on MTD && BLOCK | 1091 | depends on MTD && BLOCK |
1092 | help | 1092 | help |
1093 | JFFS is the Journaling Flash File System developed by Axis | 1093 | JFFS is the Journalling Flash File System developed by Axis |
1094 | Communications in Sweden, aimed at providing a crash/powerdown-safe | 1094 | Communications in Sweden, aimed at providing a crash/powerdown-safe |
1095 | file system for disk-less embedded devices. Further information is | 1095 | file system for disk-less embedded devices. Further information is |
1096 | available at (<http://developer.axis.com/software/jffs/>). | 1096 | available at (<http://developer.axis.com/software/jffs/>). |
@@ -1260,7 +1260,7 @@ config JFFS2_CMODE_NONE | |||
1260 | config JFFS2_CMODE_PRIORITY | 1260 | config JFFS2_CMODE_PRIORITY |
1261 | bool "priority" | 1261 | bool "priority" |
1262 | help | 1262 | help |
1263 | Tries the compressors in a predefinied order and chooses the first | 1263 | Tries the compressors in a predefined order and chooses the first |
1264 | successful one. | 1264 | successful one. |
1265 | 1265 | ||
1266 | config JFFS2_CMODE_SIZE | 1266 | config JFFS2_CMODE_SIZE |
@@ -1365,7 +1365,7 @@ config SYSV_FS | |||
1365 | 1365 | ||
1366 | If you have floppies or hard disk partitions like that, it is likely | 1366 | If you have floppies or hard disk partitions like that, it is likely |
1367 | that they contain binaries from those other Unix systems; in order | 1367 | that they contain binaries from those other Unix systems; in order |
1368 | to run these binaries, you will want to install linux-abi which is a | 1368 | to run these binaries, you will want to install linux-abi which is |
1369 | a set of kernel modules that lets you run SCO, Xenix, Wyse, | 1369 | a set of kernel modules that lets you run SCO, Xenix, Wyse, |
1370 | UnixWare, Dell Unix and System V programs under Linux. It is | 1370 | UnixWare, Dell Unix and System V programs under Linux. It is |
1371 | available via FTP (user: ftp) from | 1371 | available via FTP (user: ftp) from |
@@ -1950,7 +1950,7 @@ config AFS_FS | |||
1950 | If you say Y here, you will get an experimental Andrew File System | 1950 | If you say Y here, you will get an experimental Andrew File System |
1951 | driver. It currently only supports unsecured read-only AFS access. | 1951 | driver. It currently only supports unsecured read-only AFS access. |
1952 | 1952 | ||
1953 | See <file:Documentation/filesystems/afs.txt> for more intormation. | 1953 | See <file:Documentation/filesystems/afs.txt> for more information. |
1954 | 1954 | ||
1955 | If unsure, say N. | 1955 | If unsure, say N. |
1956 | 1956 | ||
diff --git a/fs/befs/befs_fs_types.h b/fs/befs/befs_fs_types.h index 9095518e918d..63ef1e18fb84 100644 --- a/fs/befs/befs_fs_types.h +++ b/fs/befs/befs_fs_types.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * include/linux/befs_fs_types.h | 2 | * fs/befs/befs_fs_types.h |
3 | * | 3 | * |
4 | * Copyright (C) 2001 Will Dyson (will@cs.earlham.edu) | 4 | * Copyright (C) 2001 Will Dyson (will@cs.earlham.edu) |
5 | * | 5 | * |
diff --git a/fs/cifs/README b/fs/cifs/README index 5f0e1bd64fee..432e515431c4 100644 --- a/fs/cifs/README +++ b/fs/cifs/README | |||
@@ -269,7 +269,7 @@ A partial list of the supported mount options follows: | |||
269 | (gid) mount option is specified. For the uid (gid) of newly | 269 | (gid) mount option is specified. For the uid (gid) of newly |
270 | created files and directories, ie files created since | 270 | created files and directories, ie files created since |
271 | the last mount of the server share, the expected uid | 271 | the last mount of the server share, the expected uid |
272 | (gid) is cached as as long as the inode remains in | 272 | (gid) is cached as long as the inode remains in |
273 | memory on the client. Also note that permission | 273 | memory on the client. Also note that permission |
274 | checks (authorization checks) on accesses to a file occur | 274 | checks (authorization checks) on accesses to a file occur |
275 | at the server, but there are cases in which an administrator | 275 | at the server, but there are cases in which an administrator |
@@ -375,7 +375,7 @@ A partial list of the supported mount options follows: | |||
375 | the local process on newly created files, directories, and | 375 | the local process on newly created files, directories, and |
376 | devices (create, mkdir, mknod). If the CIFS Unix Extensions | 376 | devices (create, mkdir, mknod). If the CIFS Unix Extensions |
377 | are not negotiated, for newly created files and directories | 377 | are not negotiated, for newly created files and directories |
378 | instead of using the default uid and gid specified on the | 378 | instead of using the default uid and gid specified on |
379 | the mount, cache the new file's uid and gid locally which means | 379 | the mount, cache the new file's uid and gid locally which means |
380 | that the uid for the file can change when the inode is | 380 | that the uid for the file can change when the inode is |
381 | reloaded (or the user remounts the share). | 381 | reloaded (or the user remounts the share). |
@@ -440,7 +440,7 @@ A partial list of the supported mount options follows: | |||
440 | create device files and fifos in a format compatible with | 440 | create device files and fifos in a format compatible with |
441 | Services for Unix (SFU). In addition retrieve bits 10-12 | 441 | Services for Unix (SFU). In addition retrieve bits 10-12 |
442 | of the mode via the SETFILEBITS extended attribute (as | 442 | of the mode via the SETFILEBITS extended attribute (as |
443 | SFU does). In the future the bottom 9 bits of the mode | 443 | SFU does). In the future the bottom 9 bits of the |
444 | mode also will be emulated using queries of the security | 444 | mode also will be emulated using queries of the security |
445 | descriptor (ACL). | 445 | descriptor (ACL). |
446 | sign Must use packet signing (helps avoid unwanted data modification | 446 | sign Must use packet signing (helps avoid unwanted data modification |
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index ecf3da9edf21..e77676df6713 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -252,7 +252,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_dir); | |||
252 | * | 252 | * |
253 | * This function removes a file or directory in debugfs that was previously | 253 | * This function removes a file or directory in debugfs that was previously |
254 | * created with a call to another debugfs function (like | 254 | * created with a call to another debugfs function (like |
255 | * debufs_create_file() or variants thereof.) | 255 | * debugfs_create_file() or variants thereof.) |
256 | * | 256 | * |
257 | * This function is required to be called in order for the file to be | 257 | * This function is required to be called in order for the file to be |
258 | * removed, no automatic cleanup of files will happen when a module is | 258 | * removed, no automatic cleanup of files will happen when a module is |
diff --git a/fs/hfsplus/part_tbl.c b/fs/hfsplus/part_tbl.c index ae783066fc3a..1528a6fd0299 100644 --- a/fs/hfsplus/part_tbl.c +++ b/fs/hfsplus/part_tbl.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/hfs/part_tbl.c | 2 | * linux/fs/hfsplus/part_tbl.c |
3 | * | 3 | * |
4 | * Copyright (C) 1996-1997 Paul H. Hargrove | 4 | * Copyright (C) 1996-1997 Paul H. Hargrove |
5 | * This file may be distributed under the terms of the GNU General Public License. | 5 | * This file may be distributed under the terms of the GNU General Public License. |
diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c index 32a8caf0c41e..10be51290a27 100644 --- a/fs/jbd/commit.c +++ b/fs/jbd/commit.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/commit.c | 2 | * linux/fs/jbd/commit.c |
3 | * | 3 | * |
4 | * Written by Stephen C. Tweedie <sct@redhat.com>, 1998 | 4 | * Written by Stephen C. Tweedie <sct@redhat.com>, 1998 |
5 | * | 5 | * |
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 7af6099c911c..c518dd8fe60a 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/journal.c | 2 | * linux/fs/jbd/journal.c |
3 | * | 3 | * |
4 | * Written by Stephen C. Tweedie <sct@redhat.com>, 1998 | 4 | * Written by Stephen C. Tweedie <sct@redhat.com>, 1998 |
5 | * | 5 | * |
diff --git a/fs/nfsd/nfs2acl.c b/fs/nfsd/nfs2acl.c index fc95c4df6693..fe56b38364cc 100644 --- a/fs/nfsd/nfs2acl.c +++ b/fs/nfsd/nfs2acl.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nfsd/nfsacl.c | 2 | * linux/fs/nfsd/nfs2acl.c |
3 | * | 3 | * |
4 | * Process version 2 NFSACL requests. | 4 | * Process version 2 NFSACL requests. |
5 | * | 5 | * |
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 5446a0861d1d..5be00436b5b8 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -198,8 +198,7 @@ static char *savemem(struct nfsd4_compoundargs *argp, u32 *p, int nbytes) | |||
198 | p = new; | 198 | p = new; |
199 | memcpy(p, argp->tmp, nbytes); | 199 | memcpy(p, argp->tmp, nbytes); |
200 | } else { | 200 | } else { |
201 | if (p != argp->tmpp) | 201 | BUG_ON(p != argp->tmpp); |
202 | BUG(); | ||
203 | argp->tmpp = NULL; | 202 | argp->tmpp = NULL; |
204 | } | 203 | } |
205 | if (defer_free(argp, kfree, p)) { | 204 | if (defer_free(argp, kfree, p)) { |
diff --git a/fs/nfsd/nfsxdr.c b/fs/nfsd/nfsxdr.c index e3a0797dd56b..3f14a17eaa6e 100644 --- a/fs/nfsd/nfsxdr.c +++ b/fs/nfsd/nfsxdr.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nfsd/xdr.c | 2 | * linux/fs/nfsd/nfsxdr.c |
3 | * | 3 | * |
4 | * XDR support for nfsd | 4 | * XDR support for nfsd |
5 | * | 5 | * |
diff --git a/fs/nls/nls_ascii.c b/fs/nls/nls_ascii.c index b83381c07ad6..6993faea28ac 100644 --- a/fs/nls/nls_ascii.c +++ b/fs/nls/nls_ascii.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_ascii.c | 2 | * linux/fs/nls/nls_ascii.c |
3 | * | 3 | * |
4 | * Charset ascii translation tables. | 4 | * Charset ascii translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c index b1317ad5ca18..7dfdab98729b 100644 --- a/fs/nls/nls_base.c +++ b/fs/nls/nls_base.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_base.c | 2 | * linux/fs/nls/nls_base.c |
3 | * | 3 | * |
4 | * Native language support--charsets and unicode translations. | 4 | * Native language support--charsets and unicode translations. |
5 | * By Gordon Chaffee 1996, 1997 | 5 | * By Gordon Chaffee 1996, 1997 |
diff --git a/fs/nls/nls_cp1250.c b/fs/nls/nls_cp1250.c index 32e78cf95180..570aa69846a0 100644 --- a/fs/nls/nls_cp1250.c +++ b/fs/nls/nls_cp1250.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp1250.c | 2 | * linux/fs/nls/nls_cp1250.c |
3 | * | 3 | * |
4 | * Charset cp1250 translation tables. | 4 | * Charset cp1250 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp1251.c b/fs/nls/nls_cp1251.c index cb41c8ae4486..f114afa069db 100644 --- a/fs/nls/nls_cp1251.c +++ b/fs/nls/nls_cp1251.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp1251.c | 2 | * linux/fs/nls/nls_cp1251.c |
3 | * | 3 | * |
4 | * Charset cp1251 translation tables. | 4 | * Charset cp1251 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp1255.c b/fs/nls/nls_cp1255.c index efdeefee5346..e57f2cbf5bc0 100644 --- a/fs/nls/nls_cp1255.c +++ b/fs/nls/nls_cp1255.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp1255.c | 2 | * linux/fs/nls/nls_cp1255.c |
3 | * | 3 | * |
4 | * Charset cp1255 translation tables. | 4 | * Charset cp1255 translation tables. |
5 | * The Unicode to charset table has only exact mappings. | 5 | * The Unicode to charset table has only exact mappings. |
diff --git a/fs/nls/nls_cp437.c b/fs/nls/nls_cp437.c index 5c4a1cd685dd..d41930ce4a44 100644 --- a/fs/nls/nls_cp437.c +++ b/fs/nls/nls_cp437.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp437.c | 2 | * linux/fs/nls/nls_cp437.c |
3 | * | 3 | * |
4 | * Charset cp437 translation tables. | 4 | * Charset cp437 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp737.c b/fs/nls/nls_cp737.c index e8b3ca8462e7..d21f8790aa19 100644 --- a/fs/nls/nls_cp737.c +++ b/fs/nls/nls_cp737.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp737.c | 2 | * linux/fs/nls/nls_cp737.c |
3 | * | 3 | * |
4 | * Charset cp737 translation tables. | 4 | * Charset cp737 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp775.c b/fs/nls/nls_cp775.c index bdb290ea523a..c97714c38a90 100644 --- a/fs/nls/nls_cp775.c +++ b/fs/nls/nls_cp775.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp775.c | 2 | * linux/fs/nls/nls_cp775.c |
3 | * | 3 | * |
4 | * Charset cp775 translation tables. | 4 | * Charset cp775 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp850.c b/fs/nls/nls_cp850.c index 25deaa4c8648..843b7d975ba2 100644 --- a/fs/nls/nls_cp850.c +++ b/fs/nls/nls_cp850.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp850.c | 2 | * linux/fs/nls/nls_cp850.c |
3 | * | 3 | * |
4 | * Charset cp850 translation tables. | 4 | * Charset cp850 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp852.c b/fs/nls/nls_cp852.c index b822a7b6b970..83cfd844d5ca 100644 --- a/fs/nls/nls_cp852.c +++ b/fs/nls/nls_cp852.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp852.c | 2 | * linux/fs/nls/nls_cp852.c |
3 | * | 3 | * |
4 | * Charset cp852 translation tables. | 4 | * Charset cp852 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp855.c b/fs/nls/nls_cp855.c index e8641b7a8b27..9190b7b574ff 100644 --- a/fs/nls/nls_cp855.c +++ b/fs/nls/nls_cp855.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp855.c | 2 | * linux/fs/nls/nls_cp855.c |
3 | * | 3 | * |
4 | * Charset cp855 translation tables. | 4 | * Charset cp855 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp857.c b/fs/nls/nls_cp857.c index 7ba589ef8cc0..ef3d36db8082 100644 --- a/fs/nls/nls_cp857.c +++ b/fs/nls/nls_cp857.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp857.c | 2 | * linux/fs/nls/nls_cp857.c |
3 | * | 3 | * |
4 | * Charset cp857 translation tables. | 4 | * Charset cp857 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp860.c b/fs/nls/nls_cp860.c index 3b9e49ce8c80..7e2fb6645893 100644 --- a/fs/nls/nls_cp860.c +++ b/fs/nls/nls_cp860.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp860.c | 2 | * linux/fs/nls/nls_cp860.c |
3 | * | 3 | * |
4 | * Charset cp860 translation tables. | 4 | * Charset cp860 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp861.c b/fs/nls/nls_cp861.c index 959ff64ee971..66d8d808ccf1 100644 --- a/fs/nls/nls_cp861.c +++ b/fs/nls/nls_cp861.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp861.c | 2 | * linux/fs/nls/nls_cp861.c |
3 | * | 3 | * |
4 | * Charset cp861 translation tables. | 4 | * Charset cp861 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp862.c b/fs/nls/nls_cp862.c index b96928f5a023..360ba388485f 100644 --- a/fs/nls/nls_cp862.c +++ b/fs/nls/nls_cp862.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp862.c | 2 | * linux/fs/nls/nls_cp862.c |
3 | * | 3 | * |
4 | * Charset cp862 translation tables. | 4 | * Charset cp862 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp863.c b/fs/nls/nls_cp863.c index baa6e0eab1d6..656a93113e37 100644 --- a/fs/nls/nls_cp863.c +++ b/fs/nls/nls_cp863.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp863.c | 2 | * linux/fs/nls/nls_cp863.c |
3 | * | 3 | * |
4 | * Charset cp863 translation tables. | 4 | * Charset cp863 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp864.c b/fs/nls/nls_cp864.c index f4dabb037dfe..01ca7309753e 100644 --- a/fs/nls/nls_cp864.c +++ b/fs/nls/nls_cp864.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp864.c | 2 | * linux/fs/nls/nls_cp864.c |
3 | * | 3 | * |
4 | * Charset cp864 translation tables. | 4 | * Charset cp864 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp865.c b/fs/nls/nls_cp865.c index 4caeafae32c2..5ba6ee13e109 100644 --- a/fs/nls/nls_cp865.c +++ b/fs/nls/nls_cp865.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp865.c | 2 | * linux/fs/nls/nls_cp865.c |
3 | * | 3 | * |
4 | * Charset cp865 translation tables. | 4 | * Charset cp865 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp866.c b/fs/nls/nls_cp866.c index f2b4a9a293fb..c5f82221c9fe 100644 --- a/fs/nls/nls_cp866.c +++ b/fs/nls/nls_cp866.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp866.c | 2 | * linux/fs/nls/nls_cp866.c |
3 | * | 3 | * |
4 | * Charset cp866 translation tables. | 4 | * Charset cp866 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp869.c b/fs/nls/nls_cp869.c index 12b436f4eca1..8d4015124d11 100644 --- a/fs/nls/nls_cp869.c +++ b/fs/nls/nls_cp869.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp869.c | 2 | * linux/fs/nls/nls_cp869.c |
3 | * | 3 | * |
4 | * Charset cp869 translation tables. | 4 | * Charset cp869 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp874.c b/fs/nls/nls_cp874.c index b5766a01703a..df042052c2db 100644 --- a/fs/nls/nls_cp874.c +++ b/fs/nls/nls_cp874.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp874.c | 2 | * linux/fs/nls/nls_cp874.c |
3 | * | 3 | * |
4 | * Charset cp874 translation tables. | 4 | * Charset cp874 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_cp932.c b/fs/nls/nls_cp932.c index 2c1a17cdcd24..2a9ccf3bc7ef 100644 --- a/fs/nls/nls_cp932.c +++ b/fs/nls/nls_cp932.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp932.c | 2 | * linux/fs/nls/nls_cp932.c |
3 | * | 3 | * |
4 | * Charset cp932 translation tables. | 4 | * Charset cp932 translation tables. |
5 | * This translation table was generated automatically, the | 5 | * This translation table was generated automatically, the |
diff --git a/fs/nls/nls_cp936.c b/fs/nls/nls_cp936.c index ef4cef464aba..046fde8170ea 100644 --- a/fs/nls/nls_cp936.c +++ b/fs/nls/nls_cp936.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp936.c | 2 | * linux/fs/nls/nls_cp936.c |
3 | * | 3 | * |
4 | * Charset cp936 translation tables. | 4 | * Charset cp936 translation tables. |
5 | * This translation table was generated automatically, the | 5 | * This translation table was generated automatically, the |
diff --git a/fs/nls/nls_cp949.c b/fs/nls/nls_cp949.c index 4351ae21d897..92ae19372f0f 100644 --- a/fs/nls/nls_cp949.c +++ b/fs/nls/nls_cp949.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp949.c | 2 | * linux/fs/nls/nls_cp949.c |
3 | * | 3 | * |
4 | * Charset cp949 translation tables. | 4 | * Charset cp949 translation tables. |
5 | * This translation table was generated automatically, the | 5 | * This translation table was generated automatically, the |
diff --git a/fs/nls/nls_cp950.c b/fs/nls/nls_cp950.c index 8167a2858879..5665945fb88c 100644 --- a/fs/nls/nls_cp950.c +++ b/fs/nls/nls_cp950.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_cp950.c | 2 | * linux/fs/nls/nls_cp950.c |
3 | * | 3 | * |
4 | * Charset cp950 translation tables. | 4 | * Charset cp950 translation tables. |
5 | * This translation table was generated automatically, the | 5 | * This translation table was generated automatically, the |
diff --git a/fs/nls/nls_euc-jp.c b/fs/nls/nls_euc-jp.c index 06640c3e4021..73293511578b 100644 --- a/fs/nls/nls_euc-jp.c +++ b/fs/nls/nls_euc-jp.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_euc-jp.c | 2 | * linux/fs/nls/nls_euc-jp.c |
3 | * | 3 | * |
4 | * Added `OSF/JVC Recommended Code Set Conversion Specification | 4 | * Added `OSF/JVC Recommended Code Set Conversion Specification |
5 | * between Japanese EUC and Shift-JIS' support: <hirofumi@mail.parknet.co.jp> | 5 | * between Japanese EUC and Shift-JIS' support: <hirofumi@mail.parknet.co.jp> |
diff --git a/fs/nls/nls_iso8859-1.c b/fs/nls/nls_iso8859-1.c index 70a2c1956723..2483c3c6c1c1 100644 --- a/fs/nls/nls_iso8859-1.c +++ b/fs/nls/nls_iso8859-1.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-1.c | 2 | * linux/fs/nls/nls_iso8859-1.c |
3 | * | 3 | * |
4 | * Charset iso8859-1 translation tables. | 4 | * Charset iso8859-1 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_iso8859-13.c b/fs/nls/nls_iso8859-13.c index 4547035f21a3..7b8721d74368 100644 --- a/fs/nls/nls_iso8859-13.c +++ b/fs/nls/nls_iso8859-13.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-13.c | 2 | * linux/fs/nls/nls_iso8859-13.c |
3 | * | 3 | * |
4 | * Charset iso8859-13 translation tables. | 4 | * Charset iso8859-13 translation tables. |
5 | * The Unicode to charset table has only exact mappings. | 5 | * The Unicode to charset table has only exact mappings. |
diff --git a/fs/nls/nls_iso8859-14.c b/fs/nls/nls_iso8859-14.c index 13628d0dd3a9..2e895e638dba 100644 --- a/fs/nls/nls_iso8859-14.c +++ b/fs/nls/nls_iso8859-14.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-14.c | 2 | * linux/fs/nls/nls_iso8859-14.c |
3 | * | 3 | * |
4 | * Charset iso8859-14 translation tables. | 4 | * Charset iso8859-14 translation tables. |
5 | * | 5 | * |
diff --git a/fs/nls/nls_iso8859-15.c b/fs/nls/nls_iso8859-15.c index 88b924bf7e18..5c91592779fe 100644 --- a/fs/nls/nls_iso8859-15.c +++ b/fs/nls/nls_iso8859-15.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-15.c | 2 | * linux/fs/nls/nls_iso8859-15.c |
3 | * | 3 | * |
4 | * Charset iso8859-15 translation tables. | 4 | * Charset iso8859-15 translation tables. |
5 | * The Unicode to charset table has only exact mappings. | 5 | * The Unicode to charset table has only exact mappings. |
diff --git a/fs/nls/nls_iso8859-2.c b/fs/nls/nls_iso8859-2.c index 372528a6c40c..892d38fe9530 100644 --- a/fs/nls/nls_iso8859-2.c +++ b/fs/nls/nls_iso8859-2.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-2.c | 2 | * linux/fs/nls/nls_iso8859-2.c |
3 | * | 3 | * |
4 | * Charset iso8859-2 translation tables. | 4 | * Charset iso8859-2 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_iso8859-3.c b/fs/nls/nls_iso8859-3.c index 81b45a234369..49317bcdb4be 100644 --- a/fs/nls/nls_iso8859-3.c +++ b/fs/nls/nls_iso8859-3.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-3.c | 2 | * linux/fs/nls/nls_iso8859-3.c |
3 | * | 3 | * |
4 | * Charset iso8859-3 translation tables. | 4 | * Charset iso8859-3 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_iso8859-4.c b/fs/nls/nls_iso8859-4.c index 101b87f5a49b..9f3b9368c2cf 100644 --- a/fs/nls/nls_iso8859-4.c +++ b/fs/nls/nls_iso8859-4.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-4.c | 2 | * linux/fs/nls/nls_iso8859-4.c |
3 | * | 3 | * |
4 | * Charset iso8859-4 translation tables. | 4 | * Charset iso8859-4 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_iso8859-5.c b/fs/nls/nls_iso8859-5.c index 83b0084de5eb..001a2bb132ce 100644 --- a/fs/nls/nls_iso8859-5.c +++ b/fs/nls/nls_iso8859-5.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-5.c | 2 | * linux/fs/nls/nls_iso8859-5.c |
3 | * | 3 | * |
4 | * Charset iso8859-5 translation tables. | 4 | * Charset iso8859-5 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_iso8859-6.c b/fs/nls/nls_iso8859-6.c index 0c519d65f55b..8cec03d66088 100644 --- a/fs/nls/nls_iso8859-6.c +++ b/fs/nls/nls_iso8859-6.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-6.c | 2 | * linux/fs/nls/nls_iso8859-6.c |
3 | * | 3 | * |
4 | * Charset iso8859-6 translation tables. | 4 | * Charset iso8859-6 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_iso8859-7.c b/fs/nls/nls_iso8859-7.c index bd0854625acf..1be707d5ac31 100644 --- a/fs/nls/nls_iso8859-7.c +++ b/fs/nls/nls_iso8859-7.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-7.c | 2 | * linux/fs/nls/nls_iso8859-7.c |
3 | * | 3 | * |
4 | * Charset iso8859-7 translation tables. | 4 | * Charset iso8859-7 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_iso8859-9.c b/fs/nls/nls_iso8859-9.c index 988eff791c06..8c0146f73834 100644 --- a/fs/nls/nls_iso8859-9.c +++ b/fs/nls/nls_iso8859-9.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_iso8859-9.c | 2 | * linux/fs/nls/nls_iso8859-9.c |
3 | * | 3 | * |
4 | * Charset iso8859-9 translation tables. | 4 | * Charset iso8859-9 translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_koi8-r.c b/fs/nls/nls_koi8-r.c index 0ad22c249796..fefbe0807265 100644 --- a/fs/nls/nls_koi8-r.c +++ b/fs/nls/nls_koi8-r.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_koi8-r.c | 2 | * linux/fs/nls/nls_koi8-r.c |
3 | * | 3 | * |
4 | * Charset koi8-r translation tables. | 4 | * Charset koi8-r translation tables. |
5 | * Generated automatically from the Unicode and charset | 5 | * Generated automatically from the Unicode and charset |
diff --git a/fs/nls/nls_koi8-ru.c b/fs/nls/nls_koi8-ru.c index 5db83efe27c6..e7bc1d75c78c 100644 --- a/fs/nls/nls_koi8-ru.c +++ b/fs/nls/nls_koi8-ru.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_koi8-ru.c | 2 | * linux/fs/nls/nls_koi8-ru.c |
3 | * | 3 | * |
4 | * Charset koi8-ru translation based on charset koi8-u. | 4 | * Charset koi8-ru translation based on charset koi8-u. |
5 | * The Unicode to charset table has only exact mappings. | 5 | * The Unicode to charset table has only exact mappings. |
diff --git a/fs/nls/nls_koi8-u.c b/fs/nls/nls_koi8-u.c index 9d30fd61cf46..015070211f22 100644 --- a/fs/nls/nls_koi8-u.c +++ b/fs/nls/nls_koi8-u.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/nls_koi8-u.c | 2 | * linux/fs/nls/nls_koi8-u.c |
3 | * | 3 | * |
4 | * Charset koi8-u translation tables. | 4 | * Charset koi8-u translation tables. |
5 | * The Unicode to charset table has only exact mappings. | 5 | * The Unicode to charset table has only exact mappings. |
diff --git a/fs/reiserfs/file.c b/fs/reiserfs/file.c index 41f24369e47a..c093642fb983 100644 --- a/fs/reiserfs/file.c +++ b/fs/reiserfs/file.c | |||
@@ -38,8 +38,7 @@ static int reiserfs_file_release(struct inode *inode, struct file *filp) | |||
38 | int err; | 38 | int err; |
39 | int jbegin_failure = 0; | 39 | int jbegin_failure = 0; |
40 | 40 | ||
41 | if (!S_ISREG(inode->i_mode)) | 41 | BUG_ON(!S_ISREG(inode->i_mode)); |
42 | BUG(); | ||
43 | 42 | ||
44 | /* fast out for when nothing needs to be done */ | 43 | /* fast out for when nothing needs to be done */ |
45 | if ((atomic_read(&inode->i_count) > 1 || | 44 | if ((atomic_read(&inode->i_count) > 1 || |
@@ -125,8 +124,7 @@ static int reiserfs_sync_file(struct file *p_s_filp, | |||
125 | int n_err; | 124 | int n_err; |
126 | int barrier_done; | 125 | int barrier_done; |
127 | 126 | ||
128 | if (!S_ISREG(p_s_inode->i_mode)) | 127 | BUG_ON(!S_ISREG(p_s_inode->i_mode)); |
129 | BUG(); | ||
130 | n_err = sync_mapping_buffers(p_s_inode->i_mapping); | 128 | n_err = sync_mapping_buffers(p_s_inode->i_mapping); |
131 | reiserfs_write_lock(p_s_inode->i_sb); | 129 | reiserfs_write_lock(p_s_inode->i_sb); |
132 | barrier_done = reiserfs_commit_for_inode(p_s_inode); | 130 | barrier_done = reiserfs_commit_for_inode(p_s_inode); |
diff --git a/fs/reiserfs/item_ops.c b/fs/reiserfs/item_ops.c index 7a88adbceef6..b9b423b22a8b 100644 --- a/fs/reiserfs/item_ops.c +++ b/fs/reiserfs/item_ops.c | |||
@@ -75,8 +75,7 @@ static int sd_create_vi(struct virtual_node *vn, | |||
75 | static int sd_check_left(struct virtual_item *vi, int free, | 75 | static int sd_check_left(struct virtual_item *vi, int free, |
76 | int start_skip, int end_skip) | 76 | int start_skip, int end_skip) |
77 | { | 77 | { |
78 | if (start_skip || end_skip) | 78 | BUG_ON(start_skip || end_skip); |
79 | BUG(); | ||
80 | return -1; | 79 | return -1; |
81 | } | 80 | } |
82 | 81 | ||
@@ -87,8 +86,7 @@ static int sd_check_right(struct virtual_item *vi, int free) | |||
87 | 86 | ||
88 | static int sd_part_size(struct virtual_item *vi, int first, int count) | 87 | static int sd_part_size(struct virtual_item *vi, int first, int count) |
89 | { | 88 | { |
90 | if (count) | 89 | BUG_ON(count); |
91 | BUG(); | ||
92 | return 0; | 90 | return 0; |
93 | } | 91 | } |
94 | 92 | ||
@@ -476,8 +474,7 @@ static int direntry_create_vi(struct virtual_node *vn, | |||
476 | 474 | ||
477 | vi->vi_index = TYPE_DIRENTRY; | 475 | vi->vi_index = TYPE_DIRENTRY; |
478 | 476 | ||
479 | if (!(vi->vi_ih) || !vi->vi_item) | 477 | BUG_ON(!(vi->vi_ih) || !vi->vi_item); |
480 | BUG(); | ||
481 | 478 | ||
482 | dir_u->flags = 0; | 479 | dir_u->flags = 0; |
483 | if (le_ih_k_offset(vi->vi_ih) == DOT_OFFSET) | 480 | if (le_ih_k_offset(vi->vi_ih) == DOT_OFFSET) |
@@ -575,8 +572,7 @@ static int direntry_check_right(struct virtual_item *vi, int free) | |||
575 | free -= dir_u->entry_sizes[i]; | 572 | free -= dir_u->entry_sizes[i]; |
576 | entries++; | 573 | entries++; |
577 | } | 574 | } |
578 | if (entries == dir_u->entry_count) | 575 | BUG_ON(entries == dir_u->entry_count); |
579 | BUG(); | ||
580 | 576 | ||
581 | /* "." and ".." can not be separated from each other */ | 577 | /* "." and ".." can not be separated from each other */ |
582 | if ((dir_u->flags & DIRENTRY_VI_FIRST_DIRENTRY_ITEM) | 578 | if ((dir_u->flags & DIRENTRY_VI_FIRST_DIRENTRY_ITEM) |
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index e6b5ccf23f15..ad8cbc49883a 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
@@ -718,8 +718,7 @@ static int add_to_chunk(struct buffer_chunk *chunk, struct buffer_head *bh, | |||
718 | spinlock_t * lock, void (fn) (struct buffer_chunk *)) | 718 | spinlock_t * lock, void (fn) (struct buffer_chunk *)) |
719 | { | 719 | { |
720 | int ret = 0; | 720 | int ret = 0; |
721 | if (chunk->nr >= CHUNK_SIZE) | 721 | BUG_ON(chunk->nr >= CHUNK_SIZE); |
722 | BUG(); | ||
723 | chunk->bh[chunk->nr++] = bh; | 722 | chunk->bh[chunk->nr++] = bh; |
724 | if (chunk->nr >= CHUNK_SIZE) { | 723 | if (chunk->nr >= CHUNK_SIZE) { |
725 | ret = 1; | 724 | ret = 1; |
@@ -788,8 +787,7 @@ static inline int __add_jh(struct reiserfs_journal *j, struct buffer_head *bh, | |||
788 | /* buffer must be locked for __add_jh, should be able to have | 787 | /* buffer must be locked for __add_jh, should be able to have |
789 | * two adds at the same time | 788 | * two adds at the same time |
790 | */ | 789 | */ |
791 | if (bh->b_private) | 790 | BUG_ON(bh->b_private); |
792 | BUG(); | ||
793 | jh->bh = bh; | 791 | jh->bh = bh; |
794 | bh->b_private = jh; | 792 | bh->b_private = jh; |
795 | } | 793 | } |
@@ -2967,8 +2965,7 @@ static int do_journal_begin_r(struct reiserfs_transaction_handle *th, | |||
2967 | int retval; | 2965 | int retval; |
2968 | 2966 | ||
2969 | reiserfs_check_lock_depth(p_s_sb, "journal_begin"); | 2967 | reiserfs_check_lock_depth(p_s_sb, "journal_begin"); |
2970 | if (nblocks > journal->j_trans_max) | 2968 | BUG_ON(nblocks > journal->j_trans_max); |
2971 | BUG(); | ||
2972 | 2969 | ||
2973 | PROC_INFO_INC(p_s_sb, journal.journal_being); | 2970 | PROC_INFO_INC(p_s_sb, journal.journal_being); |
2974 | /* set here for journal_join */ | 2971 | /* set here for journal_join */ |
@@ -3084,9 +3081,8 @@ struct reiserfs_transaction_handle *reiserfs_persistent_transaction(struct | |||
3084 | if (reiserfs_transaction_running(s)) { | 3081 | if (reiserfs_transaction_running(s)) { |
3085 | th = current->journal_info; | 3082 | th = current->journal_info; |
3086 | th->t_refcount++; | 3083 | th->t_refcount++; |
3087 | if (th->t_refcount < 2) { | 3084 | BUG_ON(th->t_refcount < 2); |
3088 | BUG(); | 3085 | |
3089 | } | ||
3090 | return th; | 3086 | return th; |
3091 | } | 3087 | } |
3092 | th = kmalloc(sizeof(struct reiserfs_transaction_handle), GFP_NOFS); | 3088 | th = kmalloc(sizeof(struct reiserfs_transaction_handle), GFP_NOFS); |
@@ -3126,9 +3122,7 @@ static int journal_join(struct reiserfs_transaction_handle *th, | |||
3126 | ** pointer | 3122 | ** pointer |
3127 | */ | 3123 | */ |
3128 | th->t_handle_save = cur_th; | 3124 | th->t_handle_save = cur_th; |
3129 | if (cur_th && cur_th->t_refcount > 1) { | 3125 | BUG_ON(cur_th && cur_th->t_refcount > 1); |
3130 | BUG(); | ||
3131 | } | ||
3132 | return do_journal_begin_r(th, p_s_sb, nblocks, JBEGIN_JOIN); | 3126 | return do_journal_begin_r(th, p_s_sb, nblocks, JBEGIN_JOIN); |
3133 | } | 3127 | } |
3134 | 3128 | ||
@@ -3141,9 +3135,7 @@ int journal_join_abort(struct reiserfs_transaction_handle *th, | |||
3141 | ** pointer | 3135 | ** pointer |
3142 | */ | 3136 | */ |
3143 | th->t_handle_save = cur_th; | 3137 | th->t_handle_save = cur_th; |
3144 | if (cur_th && cur_th->t_refcount > 1) { | 3138 | BUG_ON(cur_th && cur_th->t_refcount > 1); |
3145 | BUG(); | ||
3146 | } | ||
3147 | return do_journal_begin_r(th, p_s_sb, nblocks, JBEGIN_ABORT); | 3139 | return do_journal_begin_r(th, p_s_sb, nblocks, JBEGIN_ABORT); |
3148 | } | 3140 | } |
3149 | 3141 | ||
@@ -3178,8 +3170,7 @@ int journal_begin(struct reiserfs_transaction_handle *th, | |||
3178 | current->journal_info = th; | 3170 | current->journal_info = th; |
3179 | } | 3171 | } |
3180 | ret = do_journal_begin_r(th, p_s_sb, nblocks, JBEGIN_REG); | 3172 | ret = do_journal_begin_r(th, p_s_sb, nblocks, JBEGIN_REG); |
3181 | if (current->journal_info != th) | 3173 | BUG_ON(current->journal_info != th); |
3182 | BUG(); | ||
3183 | 3174 | ||
3184 | /* I guess this boils down to being the reciprocal of clm-2100 above. | 3175 | /* I guess this boils down to being the reciprocal of clm-2100 above. |
3185 | * If do_journal_begin_r fails, we need to put it back, since journal_end | 3176 | * If do_journal_begin_r fails, we need to put it back, since journal_end |
@@ -3324,8 +3315,7 @@ int journal_end(struct reiserfs_transaction_handle *th, | |||
3324 | /* we aren't allowed to close a nested transaction on a different | 3315 | /* we aren't allowed to close a nested transaction on a different |
3325 | ** filesystem from the one in the task struct | 3316 | ** filesystem from the one in the task struct |
3326 | */ | 3317 | */ |
3327 | if (cur_th->t_super != th->t_super) | 3318 | BUG_ON(cur_th->t_super != th->t_super); |
3328 | BUG(); | ||
3329 | 3319 | ||
3330 | if (th != cur_th) { | 3320 | if (th != cur_th) { |
3331 | memcpy(current->journal_info, th, sizeof(*th)); | 3321 | memcpy(current->journal_info, th, sizeof(*th)); |
@@ -3444,9 +3434,7 @@ int journal_end_sync(struct reiserfs_transaction_handle *th, | |||
3444 | 3434 | ||
3445 | BUG_ON(!th->t_trans_id); | 3435 | BUG_ON(!th->t_trans_id); |
3446 | /* you can sync while nested, very, very bad */ | 3436 | /* you can sync while nested, very, very bad */ |
3447 | if (th->t_refcount > 1) { | 3437 | BUG_ON(th->t_refcount > 1); |
3448 | BUG(); | ||
3449 | } | ||
3450 | if (journal->j_len == 0) { | 3438 | if (journal->j_len == 0) { |
3451 | reiserfs_prepare_for_journal(p_s_sb, SB_BUFFER_WITH_SB(p_s_sb), | 3439 | reiserfs_prepare_for_journal(p_s_sb, SB_BUFFER_WITH_SB(p_s_sb), |
3452 | 1); | 3440 | 1); |
@@ -3556,9 +3544,8 @@ static int check_journal_end(struct reiserfs_transaction_handle *th, | |||
3556 | ** will be dealt with by next transaction that actually writes something, but should be taken | 3544 | ** will be dealt with by next transaction that actually writes something, but should be taken |
3557 | ** care of in this trans | 3545 | ** care of in this trans |
3558 | */ | 3546 | */ |
3559 | if (journal->j_len == 0) { | 3547 | BUG_ON(journal->j_len == 0); |
3560 | BUG(); | 3548 | |
3561 | } | ||
3562 | /* if wcount > 0, and we are called to with flush or commit_now, | 3549 | /* if wcount > 0, and we are called to with flush or commit_now, |
3563 | ** we wait on j_join_wait. We will wake up when the last writer has | 3550 | ** we wait on j_join_wait. We will wake up when the last writer has |
3564 | ** finished the transaction, and started it on its way to the disk. | 3551 | ** finished the transaction, and started it on its way to the disk. |
@@ -3592,9 +3579,8 @@ static int check_journal_end(struct reiserfs_transaction_handle *th, | |||
3592 | unlock_journal(p_s_sb); | 3579 | unlock_journal(p_s_sb); |
3593 | } | 3580 | } |
3594 | } | 3581 | } |
3595 | if (journal->j_trans_id == trans_id) { | 3582 | BUG_ON(journal->j_trans_id == trans_id); |
3596 | BUG(); | 3583 | |
3597 | } | ||
3598 | if (commit_now | 3584 | if (commit_now |
3599 | && journal_list_still_alive(p_s_sb, trans_id) | 3585 | && journal_list_still_alive(p_s_sb, trans_id) |
3600 | && wait_on_commit) { | 3586 | && wait_on_commit) { |
@@ -4074,9 +4060,7 @@ static int do_journal_end(struct reiserfs_transaction_handle *th, | |||
4074 | set_commit_trans_len(commit, journal->j_len); | 4060 | set_commit_trans_len(commit, journal->j_len); |
4075 | 4061 | ||
4076 | /* special check in case all buffers in the journal were marked for not logging */ | 4062 | /* special check in case all buffers in the journal were marked for not logging */ |
4077 | if (journal->j_len == 0) { | 4063 | BUG_ON(journal->j_len == 0); |
4078 | BUG(); | ||
4079 | } | ||
4080 | 4064 | ||
4081 | /* we're about to dirty all the log blocks, mark the description block | 4065 | /* we're about to dirty all the log blocks, mark the description block |
4082 | * dirty now too. Don't mark the commit block dirty until all the | 4066 | * dirty now too. Don't mark the commit block dirty until all the |
@@ -4173,8 +4157,7 @@ static int do_journal_end(struct reiserfs_transaction_handle *th, | |||
4173 | journal, jl, &jl->j_tail_bh_list); | 4157 | journal, jl, &jl->j_tail_bh_list); |
4174 | lock_kernel(); | 4158 | lock_kernel(); |
4175 | } | 4159 | } |
4176 | if (!list_empty(&jl->j_tail_bh_list)) | 4160 | BUG_ON(!list_empty(&jl->j_tail_bh_list)); |
4177 | BUG(); | ||
4178 | up(&jl->j_commit_lock); | 4161 | up(&jl->j_commit_lock); |
4179 | 4162 | ||
4180 | /* honor the flush wishes from the caller, simple commits can | 4163 | /* honor the flush wishes from the caller, simple commits can |
diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c index 16e9cff8f15d..abde1edc2235 100644 --- a/fs/reiserfs/namei.c +++ b/fs/reiserfs/namei.c | |||
@@ -67,8 +67,7 @@ inline void set_de_name_and_namelen(struct reiserfs_dir_entry *de) | |||
67 | { | 67 | { |
68 | struct reiserfs_de_head *deh = de->de_deh + de->de_entry_num; | 68 | struct reiserfs_de_head *deh = de->de_deh + de->de_entry_num; |
69 | 69 | ||
70 | if (de->de_entry_num >= ih_entry_count(de->de_ih)) | 70 | BUG_ON(de->de_entry_num >= ih_entry_count(de->de_ih)); |
71 | BUG(); | ||
72 | 71 | ||
73 | de->de_entrylen = entry_length(de->de_bh, de->de_ih, de->de_entry_num); | 72 | de->de_entrylen = entry_length(de->de_bh, de->de_ih, de->de_entry_num); |
74 | de->de_namelen = de->de_entrylen - (de_with_sd(deh) ? SD_SIZE : 0); | 73 | de->de_namelen = de->de_entrylen - (de_with_sd(deh) ? SD_SIZE : 0); |
@@ -80,8 +79,7 @@ inline void set_de_name_and_namelen(struct reiserfs_dir_entry *de) | |||
80 | // what entry points to | 79 | // what entry points to |
81 | static inline void set_de_object_key(struct reiserfs_dir_entry *de) | 80 | static inline void set_de_object_key(struct reiserfs_dir_entry *de) |
82 | { | 81 | { |
83 | if (de->de_entry_num >= ih_entry_count(de->de_ih)) | 82 | BUG_ON(de->de_entry_num >= ih_entry_count(de->de_ih)); |
84 | BUG(); | ||
85 | de->de_dir_id = deh_dir_id(&(de->de_deh[de->de_entry_num])); | 83 | de->de_dir_id = deh_dir_id(&(de->de_deh[de->de_entry_num])); |
86 | de->de_objectid = deh_objectid(&(de->de_deh[de->de_entry_num])); | 84 | de->de_objectid = deh_objectid(&(de->de_deh[de->de_entry_num])); |
87 | } | 85 | } |
@@ -90,8 +88,7 @@ static inline void store_de_entry_key(struct reiserfs_dir_entry *de) | |||
90 | { | 88 | { |
91 | struct reiserfs_de_head *deh = de->de_deh + de->de_entry_num; | 89 | struct reiserfs_de_head *deh = de->de_deh + de->de_entry_num; |
92 | 90 | ||
93 | if (de->de_entry_num >= ih_entry_count(de->de_ih)) | 91 | BUG_ON(de->de_entry_num >= ih_entry_count(de->de_ih)); |
94 | BUG(); | ||
95 | 92 | ||
96 | /* store key of the found entry */ | 93 | /* store key of the found entry */ |
97 | de->de_entry_key.version = KEY_FORMAT_3_5; | 94 | de->de_entry_key.version = KEY_FORMAT_3_5; |
diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c index 8b9b13127136..5240abe1a709 100644 --- a/fs/reiserfs/stree.c +++ b/fs/reiserfs/stree.c | |||
@@ -1476,9 +1476,7 @@ static int maybe_indirect_to_direct(struct reiserfs_transaction_handle *th, | |||
1476 | int n_block_size = p_s_sb->s_blocksize; | 1476 | int n_block_size = p_s_sb->s_blocksize; |
1477 | int cut_bytes; | 1477 | int cut_bytes; |
1478 | BUG_ON(!th->t_trans_id); | 1478 | BUG_ON(!th->t_trans_id); |
1479 | 1479 | BUG_ON(n_new_file_size != p_s_inode->i_size); | |
1480 | if (n_new_file_size != p_s_inode->i_size) | ||
1481 | BUG(); | ||
1482 | 1480 | ||
1483 | /* the page being sent in could be NULL if there was an i/o error | 1481 | /* the page being sent in could be NULL if there was an i/o error |
1484 | ** reading in the last block. The user will hit problems trying to | 1482 | ** reading in the last block. The user will hit problems trying to |
diff --git a/fs/xfs/support/debug.c b/fs/xfs/support/debug.c index 36fbeccdc722..c75f68361e33 100644 --- a/fs/xfs/support/debug.c +++ b/fs/xfs/support/debug.c | |||
@@ -53,8 +53,7 @@ cmn_err(register int level, char *fmt, ...) | |||
53 | va_end(ap); | 53 | va_end(ap); |
54 | spin_unlock_irqrestore(&xfs_err_lock,flags); | 54 | spin_unlock_irqrestore(&xfs_err_lock,flags); |
55 | 55 | ||
56 | if (level == CE_PANIC) | 56 | BUG_ON(level == CE_PANIC); |
57 | BUG(); | ||
58 | } | 57 | } |
59 | 58 | ||
60 | void | 59 | void |
@@ -72,8 +71,7 @@ icmn_err(register int level, char *fmt, va_list ap) | |||
72 | strcat(message, "\n"); | 71 | strcat(message, "\n"); |
73 | spin_unlock_irqrestore(&xfs_err_lock,flags); | 72 | spin_unlock_irqrestore(&xfs_err_lock,flags); |
74 | printk("%s%s", err_level[level], message); | 73 | printk("%s%s", err_level[level], message); |
75 | if (level == CE_PANIC) | 74 | BUG_ON(level == CE_PANIC); |
76 | BUG(); | ||
77 | } | 75 | } |
78 | 76 | ||
79 | void | 77 | void |