projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull cpu-hotplug into release branch
[powerpc.git]
/
fs
/
smbfs
/
file.c
diff --git
a/fs/smbfs/file.c
b/fs/smbfs/file.c
index
7042e62
..
ed9a24d
100644
(file)
--- a/
fs/smbfs/file.c
+++ b/
fs/smbfs/file.c
@@
-178,11
+178,9
@@
smb_writepage(struct page *page, struct writeback_control *wbc)
unsigned offset = PAGE_CACHE_SIZE;
int err;
unsigned offset = PAGE_CACHE_SIZE;
int err;
- if (!mapping)
- BUG();
+ BUG_ON(!mapping);
inode = mapping->host;
inode = mapping->host;
- if (!inode)
- BUG();
+ BUG_ON(!inode);
end_index = inode->i_size >> PAGE_CACHE_SHIFT;
end_index = inode->i_size >> PAGE_CACHE_SHIFT;
@@
-401,7
+399,7
@@
smb_file_permission(struct inode *inode, int mask, struct nameidata *nd)
return error;
}
return error;
}
-struct file_operations smb_file_operations =
+
const
struct file_operations smb_file_operations =
{
.llseek = remote_llseek,
.read = smb_file_read,
{
.llseek = remote_llseek,
.read = smb_file_read,