BUG_ON() Conversion in fs/smbfs/
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() and can better optimized away. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
This commit is contained in:
parent
4b4d1cc733
commit
5df0d31241
1 changed files with 2 additions and 4 deletions
|
@ -178,11 +178,9 @@ smb_writepage(struct page *page, struct writeback_control *wbc)
|
|||
unsigned offset = PAGE_CACHE_SIZE;
|
||||
int err;
|
||||
|
||||
if (!mapping)
|
||||
BUG();
|
||||
BUG_ON(!mapping);
|
||||
inode = mapping->host;
|
||||
if (!inode)
|
||||
BUG();
|
||||
BUG_ON(!inode);
|
||||
|
||||
end_index = inode->i_size >> PAGE_CACHE_SHIFT;
|
||||
|
||||
|
|
Loading…
Reference in a new issue