diff options
Diffstat (limited to 'fs/ocfs2/file.h')
-rw-r--r-- | fs/ocfs2/file.h | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/fs/ocfs2/file.h b/fs/ocfs2/file.h index 1e27b4d017ea..e92382cbca5f 100644 --- a/fs/ocfs2/file.h +++ b/fs/ocfs2/file.h | |||
@@ -28,9 +28,12 @@ | |||
28 | 28 | ||
29 | extern const struct file_operations ocfs2_fops; | 29 | extern const struct file_operations ocfs2_fops; |
30 | extern const struct file_operations ocfs2_dops; | 30 | extern const struct file_operations ocfs2_dops; |
31 | extern const struct file_operations ocfs2_fops_no_plocks; | ||
32 | extern const struct file_operations ocfs2_dops_no_plocks; | ||
31 | extern const struct inode_operations ocfs2_file_iops; | 33 | extern const struct inode_operations ocfs2_file_iops; |
32 | extern const struct inode_operations ocfs2_special_file_iops; | 34 | extern const struct inode_operations ocfs2_special_file_iops; |
33 | struct ocfs2_alloc_context; | 35 | struct ocfs2_alloc_context; |
36 | enum ocfs2_alloc_restarted; | ||
34 | 37 | ||
35 | struct ocfs2_file_private { | 38 | struct ocfs2_file_private { |
36 | struct file *fp_file; | 39 | struct file *fp_file; |
@@ -38,27 +41,18 @@ struct ocfs2_file_private { | |||
38 | struct ocfs2_lock_res fp_flock; | 41 | struct ocfs2_lock_res fp_flock; |
39 | }; | 42 | }; |
40 | 43 | ||
41 | enum ocfs2_alloc_restarted { | 44 | int ocfs2_add_inode_data(struct ocfs2_super *osb, |
42 | RESTART_NONE = 0, | 45 | struct inode *inode, |
43 | RESTART_TRANS, | 46 | u32 *logical_offset, |
44 | RESTART_META | 47 | u32 clusters_to_add, |
45 | }; | 48 | int mark_unwritten, |
46 | int ocfs2_do_extend_allocation(struct ocfs2_super *osb, | 49 | struct buffer_head *fe_bh, |
47 | struct inode *inode, | 50 | handle_t *handle, |
48 | u32 *logical_offset, | 51 | struct ocfs2_alloc_context *data_ac, |
49 | u32 clusters_to_add, | 52 | struct ocfs2_alloc_context *meta_ac, |
50 | int mark_unwritten, | 53 | enum ocfs2_alloc_restarted *reason_ret); |
51 | struct buffer_head *fe_bh, | ||
52 | handle_t *handle, | ||
53 | struct ocfs2_alloc_context *data_ac, | ||
54 | struct ocfs2_alloc_context *meta_ac, | ||
55 | enum ocfs2_alloc_restarted *reason_ret); | ||
56 | int ocfs2_extend_no_holes(struct inode *inode, u64 new_i_size, | 54 | int ocfs2_extend_no_holes(struct inode *inode, u64 new_i_size, |
57 | u64 zero_to); | 55 | u64 zero_to); |
58 | int ocfs2_lock_allocators(struct inode *inode, struct ocfs2_dinode *di, | ||
59 | u32 clusters_to_add, u32 extents_to_split, | ||
60 | struct ocfs2_alloc_context **data_ac, | ||
61 | struct ocfs2_alloc_context **meta_ac); | ||
62 | int ocfs2_setattr(struct dentry *dentry, struct iattr *attr); | 56 | int ocfs2_setattr(struct dentry *dentry, struct iattr *attr); |
63 | int ocfs2_getattr(struct vfsmount *mnt, struct dentry *dentry, | 57 | int ocfs2_getattr(struct vfsmount *mnt, struct dentry *dentry, |
64 | struct kstat *stat); | 58 | struct kstat *stat); |