File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1597,6 +1597,10 @@ static int ocfs2_rename(struct mnt_idmap *idmap,
1597
1597
if (update_dot_dot ) {
1598
1598
status = ocfs2_update_entry (old_inode , handle ,
1599
1599
& old_inode_dot_dot_res , new_dir );
1600
+ if (status < 0 ) {
1601
+ mlog_errno (status );
1602
+ goto bail ;
1603
+ }
1600
1604
drop_nlink (old_dir );
1601
1605
if (new_inode ) {
1602
1606
drop_nlink (new_inode );
@@ -1636,6 +1640,10 @@ static int ocfs2_rename(struct mnt_idmap *idmap,
1636
1640
INODE_CACHE (old_dir ),
1637
1641
old_dir_bh ,
1638
1642
OCFS2_JOURNAL_ACCESS_WRITE );
1643
+ if (status < 0 ) {
1644
+ mlog_errno (status );
1645
+ goto bail ;
1646
+ }
1639
1647
fe = (struct ocfs2_dinode * ) old_dir_bh -> b_data ;
1640
1648
ocfs2_set_links_count (fe , old_dir -> i_nlink );
1641
1649
ocfs2_journal_dirty (handle , old_dir_bh );
Original file line number Diff line number Diff line change @@ -1240,6 +1240,10 @@ int ocfs2_create_local_dquot(struct dquot *dquot)
1240
1240
& od -> dq_local_phys_blk ,
1241
1241
& pcount ,
1242
1242
NULL );
1243
+ if (status < 0 ) {
1244
+ mlog_errno (status );
1245
+ goto out ;
1246
+ }
1243
1247
1244
1248
/* Initialize dquot structure on disk */
1245
1249
status = ocfs2_local_write_dquot (dquot );
You can’t perform that action at this time.
0 commit comments