aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inline.c
diff options
context:
space:
mode:
authorliang xie <xieliang007@gmail.com>2014-05-12 22:06:43 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-05-12 22:06:43 -0400
commit5d60125530b0122f5a0a57481f3064a6250365dd (patch)
treeec782bb0e4e6a3828b8d2cf7f426700ad069ea2c /fs/ext4/inline.c
parentc8b459f492cbe8be26d8eac0489ef627ed355947 (diff)
ext4: add missing BUFFER_TRACE before ext4_journal_get_write_access
Make them more consistently Signed-off-by: xieliang <xieliang@xiaomi.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inline.c')
-rw-r--r--fs/ext4/inline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c
index 33dd704d16bd..645205d8ada6 100644
--- a/fs/ext4/inline.c
+++ b/fs/ext4/inline.c
@@ -264,6 +264,7 @@ static int ext4_create_inline_data(handle_t *handle,
264 if (error) 264 if (error)
265 return error; 265 return error;
266 266
267 BUFFER_TRACE(is.iloc.bh, "get_write_access");
267 error = ext4_journal_get_write_access(handle, is.iloc.bh); 268 error = ext4_journal_get_write_access(handle, is.iloc.bh);
268 if (error) 269 if (error)
269 goto out; 270 goto out;
@@ -347,6 +348,7 @@ static int ext4_update_inline_data(handle_t *handle, struct inode *inode,
347 if (error == -ENODATA) 348 if (error == -ENODATA)
348 goto out; 349 goto out;
349 350
351 BUFFER_TRACE(is.iloc.bh, "get_write_access");
350 error = ext4_journal_get_write_access(handle, is.iloc.bh); 352 error = ext4_journal_get_write_access(handle, is.iloc.bh);
351 if (error) 353 if (error)
352 goto out; 354 goto out;
@@ -424,6 +426,7 @@ static int ext4_destroy_inline_data_nolock(handle_t *handle,
424 if (error) 426 if (error)
425 goto out; 427 goto out;
426 428
429 BUFFER_TRACE(is.iloc.bh, "get_write_access");
427 error = ext4_journal_get_write_access(handle, is.iloc.bh); 430 error = ext4_journal_get_write_access(handle, is.iloc.bh);
428 if (error) 431 if (error)
429 goto out; 432 goto out;
@@ -1007,6 +1010,7 @@ static int ext4_add_dirent_to_inline(handle_t *handle,
1007 if (err) 1010 if (err)
1008 return err; 1011 return err;
1009 1012
1013 BUFFER_TRACE(iloc->bh, "get_write_access");
1010 err = ext4_journal_get_write_access(handle, iloc->bh); 1014 err = ext4_journal_get_write_access(handle, iloc->bh);
1011 if (err) 1015 if (err)
1012 return err; 1016 return err;
@@ -1669,6 +1673,7 @@ int ext4_delete_inline_entry(handle_t *handle,
1669 EXT4_MIN_INLINE_DATA_SIZE; 1673 EXT4_MIN_INLINE_DATA_SIZE;
1670 } 1674 }
1671 1675
1676 BUFFER_TRACE(bh, "get_write_access");
1672 err = ext4_journal_get_write_access(handle, bh); 1677 err = ext4_journal_get_write_access(handle, bh);
1673 if (err) 1678 if (err)
1674 goto out; 1679 goto out;