aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>2012-06-25 23:25:22 -0400
committerChris Mason <chris.mason@fusionio.com>2012-07-23 16:27:54 -0400
commitb9959295151625c17723103afd79077e80b24ddd (patch)
treea5be31d588786e3849bcbb512651113b849cebda /fs/btrfs/inode.c
parent23291a044c31f9dfdeaf633b631059fb75e5c2c4 (diff)
Btrfs: return error of btrfs_update_inode() to caller
We didn't check error of btrfs_update_inode(), but that error looks easy to bubble back up. Reviewed-by: David Sterba <dsterba@suse.cz> Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index fcc65802f367..f93a98e65d6c 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2833,7 +2833,7 @@ err:
2833 inode_inc_iversion(inode); 2833 inode_inc_iversion(inode);
2834 inode_inc_iversion(dir); 2834 inode_inc_iversion(dir);
2835 inode->i_ctime = dir->i_mtime = dir->i_ctime = CURRENT_TIME; 2835 inode->i_ctime = dir->i_mtime = dir->i_ctime = CURRENT_TIME;
2836 btrfs_update_inode(trans, root, dir); 2836 ret = btrfs_update_inode(trans, root, dir);
2837out: 2837out:
2838 return ret; 2838 return ret;
2839} 2839}