From e806271916ed6068a0e3e4e9298dff0688b88e0d Mon Sep 17 00:00:00 2001 From: Boaz Harrosh Date: Mon, 27 Oct 2008 18:37:02 +0200 Subject: 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 --- fs/exofs/exofs.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'fs/exofs/exofs.h') 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) return container_of(inode, struct exofs_i_info, vfs_inode); } +/************************* + * function declarations * + *************************/ +/* inode.c */ +void exofs_truncate(struct inode *inode); +int exofs_setattr(struct dentry *, struct iattr *); + +/********************* + * operation vectors * + *********************/ +/* file.c */ +extern const struct inode_operations exofs_file_inode_operations; +extern const struct file_operations exofs_file_operations; + #endif -- cgit