ext4, jbd2: Provide accessor function for handle credits
[linux-2.6-microblaze.git] / fs / ext4 / xattr.c
index b79d8ff..48a9dbd 100644 (file)
@@ -2314,7 +2314,7 @@ ext4_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index,
                                                   flags & XATTR_CREATE);
                brelse(bh);
 
-               if (!ext4_handle_has_enough_credits(handle, credits)) {
+               if (jbd2_handle_buffer_credits(handle) < credits) {
                        error = -ENOSPC;
                        goto cleanup;
                }