mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] Exterminate PAGE_BUG
Remove PAGE_BUG - repalce it with BUG and BUG_ON. Signed-off-by: Matt Mackall <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c8538a7aa5
commit
cd7619d6bf
10 changed files with 10 additions and 37 deletions
|
|
@ -49,8 +49,7 @@ static int udf_adinicb_readpage(struct file *file, struct page * page)
|
|||
struct inode *inode = page->mapping->host;
|
||||
char *kaddr;
|
||||
|
||||
if (!PageLocked(page))
|
||||
PAGE_BUG(page);
|
||||
BUG_ON(!PageLocked(page));
|
||||
|
||||
kaddr = kmap(page);
|
||||
memset(kaddr, 0, PAGE_CACHE_SIZE);
|
||||
|
|
@ -67,8 +66,7 @@ static int udf_adinicb_writepage(struct page *page, struct writeback_control *wb
|
|||
struct inode *inode = page->mapping->host;
|
||||
char *kaddr;
|
||||
|
||||
if (!PageLocked(page))
|
||||
PAGE_BUG(page);
|
||||
BUG_ON(!PageLocked(page));
|
||||
|
||||
kaddr = kmap(page);
|
||||
memcpy(UDF_I_DATA(inode) + UDF_I_LENEATTR(inode), kaddr, inode->i_size);
|
||||
|
|
|
|||
|
|
@ -167,8 +167,8 @@ void udf_expand_file_adinicb(struct inode * inode, int newsize, int * err)
|
|||
}
|
||||
|
||||
page = grab_cache_page(inode->i_mapping, 0);
|
||||
if (!PageLocked(page))
|
||||
PAGE_BUG(page);
|
||||
BUG_ON(!PageLocked(page));
|
||||
|
||||
if (!PageUptodate(page))
|
||||
{
|
||||
kaddr = kmap(page);
|
||||
|
|
|
|||
Loading…
Reference in a new issue