diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2008-10-27 13:31:34 -0400 |
---|---|---|
committer | Boaz Harrosh <bharrosh@panasas.com> | 2009-03-31 12:44:29 -0400 |
commit | beaec07ba6af35d387643b76a2920a7a6e22207b (patch) | |
tree | 74ffd4738198424f698ae238e4d3164938ef5af7 /fs/exofs/exofs.h | |
parent | 982980d753223fda3864038236b7b94e246895cb (diff) |
exofs: address_space_operations
OK Now we start to read and write from osd-objects. We try to
collect at most contiguous pages as possible in a single write/read.
The first page index is the object's offset.
TODO:
In 64-bit a single bio can carry at most 128 pages.
Add support of chaining multiple bios
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/exofs/exofs.h')
-rw-r--r-- | fs/exofs/exofs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/exofs/exofs.h b/fs/exofs/exofs.h index 825454d76f6c..0276242326ab 100644 --- a/fs/exofs/exofs.h +++ b/fs/exofs/exofs.h | |||
@@ -130,6 +130,9 @@ static inline struct exofs_i_info *exofs_i(struct inode *inode) | |||
130 | /* inode.c */ | 130 | /* inode.c */ |
131 | void exofs_truncate(struct inode *inode); | 131 | void exofs_truncate(struct inode *inode); |
132 | int exofs_setattr(struct dentry *, struct iattr *); | 132 | int exofs_setattr(struct dentry *, struct iattr *); |
133 | int exofs_write_begin(struct file *file, struct address_space *mapping, | ||
134 | loff_t pos, unsigned len, unsigned flags, | ||
135 | struct page **pagep, void **fsdata); | ||
133 | 136 | ||
134 | /********************* | 137 | /********************* |
135 | * operation vectors * | 138 | * operation vectors * |
@@ -138,6 +141,9 @@ int exofs_setattr(struct dentry *, struct iattr *); | |||
138 | extern const struct inode_operations exofs_file_inode_operations; | 141 | extern const struct inode_operations exofs_file_inode_operations; |
139 | extern const struct file_operations exofs_file_operations; | 142 | extern const struct file_operations exofs_file_operations; |
140 | 143 | ||
144 | /* inode.c */ | ||
145 | extern const struct address_space_operations exofs_aops; | ||
146 | |||
141 | /* symlink.c */ | 147 | /* symlink.c */ |
142 | extern const struct inode_operations exofs_symlink_inode_operations; | 148 | extern const struct inode_operations exofs_symlink_inode_operations; |
143 | extern const struct inode_operations exofs_fast_symlink_inode_operations; | 149 | extern const struct inode_operations exofs_fast_symlink_inode_operations; |