diff options
Diffstat (limited to 'fs/gfs2/dir.c')
-rw-r--r-- | fs/gfs2/dir.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index 259b088cfc4c..9a35670fdc38 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c | |||
@@ -1676,16 +1676,11 @@ int gfs2_dir_add(struct inode *inode, const struct qstr *name, | |||
1676 | be16_add_cpu(&leaf->lf_entries, 1); | 1676 | be16_add_cpu(&leaf->lf_entries, 1); |
1677 | } | 1677 | } |
1678 | brelse(bh); | 1678 | brelse(bh); |
1679 | error = gfs2_meta_inode_buffer(ip, &bh); | ||
1680 | if (error) | ||
1681 | break; | ||
1682 | gfs2_trans_add_bh(ip->i_gl, bh, 1); | ||
1683 | ip->i_entries++; | 1679 | ip->i_entries++; |
1684 | ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; | 1680 | ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; |
1685 | if (S_ISDIR(nip->i_inode.i_mode)) | 1681 | if (S_ISDIR(nip->i_inode.i_mode)) |
1686 | inc_nlink(&ip->i_inode); | 1682 | inc_nlink(&ip->i_inode); |
1687 | gfs2_dinode_out(ip, bh->b_data); | 1683 | mark_inode_dirty(inode); |
1688 | brelse(bh); | ||
1689 | error = 0; | 1684 | error = 0; |
1690 | break; | 1685 | break; |
1691 | } | 1686 | } |