projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sata_sil24: kill unused local variable idx in sil24_fill_sg()
[powerpc.git]
/
fs
/
affs
/
file.c
diff --git
a/fs/affs/file.c
b/fs/affs/file.c
index
7076262
..
4aa8079
100644
(file)
--- a/
fs/affs/file.c
+++ b/
fs/affs/file.c
@@
-27,8
+27,10
@@
static int affs_file_release(struct inode *inode, struct file *filp);
const struct file_operations affs_file_operations = {
.llseek = generic_file_llseek,
const struct file_operations affs_file_operations = {
.llseek = generic_file_llseek,
- .read = generic_file_read,
- .write = generic_file_write,
+ .read = do_sync_read,
+ .aio_read = generic_file_aio_read,
+ .write = do_sync_write,
+ .aio_write = generic_file_aio_write,
.mmap = generic_file_mmap,
.open = affs_file_open,
.release = affs_file_release,
.mmap = generic_file_mmap,
.open = affs_file_open,
.release = affs_file_release,
@@
-36,7
+38,7
@@
const struct file_operations affs_file_operations = {
.sendfile = generic_file_sendfile,
};
.sendfile = generic_file_sendfile,
};
-struct inode_operations affs_file_inode_operations = {
+
const
struct inode_operations affs_file_inode_operations = {
.truncate = affs_truncate,
.setattr = affs_notify_change,
};
.truncate = affs_truncate,
.setattr = affs_notify_change,
};
@@
-406,7
+408,7
@@
static sector_t _affs_bmap(struct address_space *mapping, sector_t block)
{
return generic_block_bmap(mapping,block,affs_get_block);
}
{
return generic_block_bmap(mapping,block,affs_get_block);
}
-struct address_space_operations affs_aops = {
+
const
struct address_space_operations affs_aops = {
.readpage = affs_readpage,
.writepage = affs_writepage,
.sync_page = block_sync_page,
.readpage = affs_readpage,
.writepage = affs_writepage,
.sync_page = block_sync_page,
@@
-759,7
+761,7
@@
out:
goto done;
}
goto done;
}
-struct address_space_operations affs_aops_ofs = {
+
const
struct address_space_operations affs_aops_ofs = {
.readpage = affs_readpage_ofs,
//.writepage = affs_writepage_ofs,
//.sync_page = affs_sync_page_ofs,
.readpage = affs_readpage_ofs,
//.writepage = affs_writepage_ofs,
//.sync_page = affs_sync_page_ofs,