diff options
author | Amir Goldstein <amir73il@gmail.com> | 2011-03-20 21:18:44 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-03-20 21:18:44 -0400 |
commit | ef6078930263bfcdcfe4dddb2cd85254b4cf4f5c (patch) | |
tree | 78ad55a45c5df9be3be1453c2fc36e98d3c2196b /fs/ext4/ext4_jbd2.c | |
parent | 93737456d68ddcb86232f669b83da673dd12e351 (diff) | |
download | linux-ef6078930263bfcdcfe4dddb2cd85254b4cf4f5c.tar.gz linux-ef6078930263bfcdcfe4dddb2cd85254b4cf4f5c.tar.bz2 linux-ef6078930263bfcdcfe4dddb2cd85254b4cf4f5c.zip |
ext4: handle errors in ext4_rename
Checking return code from ext4_journal_get_write_access() is important
with snapshots, because this function invokes COW, so may return new
errors, such as ENOSPC.
We move the call to ext4_journal_get_write_access earlier in the
function, to simplify error handling in the case that this function
returns returns an error.
Signed-off-by: Amir Goldstein <amir73il@users.sf.net>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_jbd2.c')
0 files changed, 0 insertions, 0 deletions