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;
|
unsigned offset = PAGE_CACHE_SIZE;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (!mapping)
|
BUG_ON(!mapping);
|
||||||
BUG();
|
|
||||||
inode = mapping->host;
|
inode = mapping->host;
|
||||||
if (!inode)
|
BUG_ON(!inode);
|
||||||
BUG();
|
|
||||||
|
|
||||||
end_index = inode->i_size >> PAGE_CACHE_SHIFT;
|
end_index = inode->i_size >> PAGE_CACHE_SHIFT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue