aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exofs/exofs.h
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2008-10-27 12:37:02 -0400
committerBoaz Harrosh <bharrosh@panasas.com>2009-03-31 12:44:24 -0400
commite806271916ed6068a0e3e4e9298dff0688b88e0d (patch)
tree53669f4a55fecd82d289c035712d416e5b8dce35 /fs/exofs/exofs.h
parentb14f8ab2844987f013253dd04b708bde7fc1b52d (diff)
exofs: file and file_inode operations
implementation of the file_operations and inode_operations for regular data files. Most file_operations are generic vfs implementations except: - exofs_truncate will truncate the OSD object as well - Generic file_fsync is not good for none_bd devices so open code it - The default for .flush in Linux is todo nothing so call exofs_fsync on the file. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/exofs/exofs.h')
-rw-r--r--fs/exofs/exofs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/exofs/exofs.h b/fs/exofs/exofs.h
index 365376d3f72d..a735258c7364 100644
--- a/fs/exofs/exofs.h
+++ b/fs/exofs/exofs.h
@@ -124,4 +124,18 @@ static inline struct exofs_i_info *exofs_i(struct inode *inode)
124 return container_of(inode, struct exofs_i_info, vfs_inode); 124 return container_of(inode, struct exofs_i_info, vfs_inode);
125} 125}
126 126
127/*************************
128 * function declarations *
129 *************************/
130/* inode.c */
131void exofs_truncate(struct inode *inode);
132int exofs_setattr(struct dentry *, struct iattr *);
133
134/*********************
135 * operation vectors *
136 *********************/
137/* file.c */
138extern const struct inode_operations exofs_file_inode_operations;
139extern const struct file_operations exofs_file_operations;
140
127#endif 141#endif