ext4: do not ask jbd2 to write data for delalloc buffers
[sfrench/cifs-2.6.git] / fs / ext4 / ext4_jbd2.h
index f1c940b38b30cce172c4aad4bf288ebaa4d4bb37..09c1ef38cbe6aaff2c03185b31da20255df8990b 100644 (file)
@@ -359,7 +359,8 @@ static inline int ext4_journal_force_commit(journal_t *journal)
        return 0;
 }
 
-static inline int ext4_jbd2_file_inode(handle_t *handle, struct inode *inode)
+static inline int ext4_jbd2_inode_add_write(handle_t *handle,
+                                           struct inode *inode)
 {
        if (ext4_handle_valid(handle))
                return jbd2_journal_inode_add_write(handle,
@@ -367,6 +368,15 @@ static inline int ext4_jbd2_file_inode(handle_t *handle, struct inode *inode)
        return 0;
 }
 
+static inline int ext4_jbd2_inode_add_wait(handle_t *handle,
+                                          struct inode *inode)
+{
+       if (ext4_handle_valid(handle))
+               return jbd2_journal_inode_add_wait(handle,
+                                                  EXT4_I(inode)->jinode);
+       return 0;
+}
+
 static inline void ext4_update_inode_fsync_trans(handle_t *handle,
                                                 struct inode *inode,
                                                 int datasync)