aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/dir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index cf8a2cb28505..a6ec75c56fcf 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -211,8 +211,8 @@ static int afs_dir_open(struct inode *inode, struct file *file)
211{ 211{
212 _enter("{%lu}", inode->i_ino); 212 _enter("{%lu}", inode->i_ino);
213 213
214 BUG_ON(sizeof(union afs_dir_block) != 2048); 214 BUILD_BUG_ON(sizeof(union afs_dir_block) != 2048);
215 BUG_ON(sizeof(union afs_dirent) != 32); 215 BUILD_BUG_ON(sizeof(union afs_dirent) != 32);
216 216
217 if (AFS_FS_I(inode)->flags & AFS_VNODE_DELETED) 217 if (AFS_FS_I(inode)->flags & AFS_VNODE_DELETED)
218 return -ENOENT; 218 return -ENOENT;
@@ -446,8 +446,8 @@ static struct dentry *afs_dir_lookup(struct inode *dir, struct dentry *dentry,
446 _enter("{%lu},%p{%s}", dir->i_ino, dentry, dentry->d_name.name); 446 _enter("{%lu},%p{%s}", dir->i_ino, dentry, dentry->d_name.name);
447 447
448 /* insanity checks first */ 448 /* insanity checks first */
449 BUG_ON(sizeof(union afs_dir_block) != 2048); 449 BUILD_BUG_ON(sizeof(union afs_dir_block) != 2048);
450 BUG_ON(sizeof(union afs_dirent) != 32); 450 BUILD_BUG_ON(sizeof(union afs_dirent) != 32);
451 451
452 if (dentry->d_name.len > 255) { 452 if (dentry->d_name.len > 255) {
453 _leave(" = -ENAMETOOLONG"); 453 _leave(" = -ENAMETOOLONG");