aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/btrfs_inode.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r--fs/btrfs/btrfs_inode.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h
index f6783a42f010..7a4dee199832 100644
--- a/fs/btrfs/btrfs_inode.h
+++ b/fs/btrfs/btrfs_inode.h
@@ -44,9 +44,6 @@ struct btrfs_inode {
44 */ 44 */
45 struct extent_io_tree io_failure_tree; 45 struct extent_io_tree io_failure_tree;
46 46
47 /* held while inesrting or deleting extents from files */
48 struct mutex extent_mutex;
49
50 /* held while logging the inode in tree-log.c */ 47 /* held while logging the inode in tree-log.c */
51 struct mutex log_mutex; 48 struct mutex log_mutex;
52 49
@@ -156,6 +153,11 @@ struct btrfs_inode {
156 unsigned ordered_data_close:1; 153 unsigned ordered_data_close:1;
157 unsigned dummy_inode:1; 154 unsigned dummy_inode:1;
158 155
156 /*
157 * always compress this one file
158 */
159 unsigned force_compress:1;
160
159 struct inode vfs_inode; 161 struct inode vfs_inode;
160}; 162};
161 163
@@ -166,7 +168,7 @@ static inline struct btrfs_inode *BTRFS_I(struct inode *inode)
166 168
167static inline void btrfs_i_size_write(struct inode *inode, u64 size) 169static inline void btrfs_i_size_write(struct inode *inode, u64 size)
168{ 170{
169 inode->i_size = size; 171 i_size_write(inode, size);
170 BTRFS_I(inode)->disk_i_size = size; 172 BTRFS_I(inode)->disk_i_size = size;
171} 173}
172 174