Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38888
b: refs/heads/master
c: 7ecdb70
h: refs/heads/master
v: v3
  • Loading branch information
Steven Whitehouse committed Oct 4, 2006
1 parent 7948cab commit 97880be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fcb47e0bd279cab5ba8299c0a1e3364d15413a6b
refs/heads/master: 7ecdb70a0ea436c06540140242bfac6ac3babfc0
4 changes: 2 additions & 2 deletions trunk/fs/gfs2/ops_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,15 +404,15 @@ static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, int mode)
gfs2_trans_add_bh(ip->i_gl, dibh, 1);
gfs2_qstr2dirent(&str, GFS2_DIRENT_SIZE(str.len), dent);
dent->de_inum = di->di_num; /* already GFS2 endian */
dent->de_type = DT_DIR;
dent->de_type = cpu_to_be16(DT_DIR);
di->di_entries = cpu_to_be32(1);

gfs2_str2qstr(&str, "..");
dent = (struct gfs2_dirent *)((char*)dent + GFS2_DIRENT_SIZE(1));
gfs2_qstr2dirent(&str, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), dent);

gfs2_inum_out(&dip->i_num, &dent->de_inum);
dent->de_type = DT_DIR;
dent->de_type = cpu_to_be16(DT_DIR);

gfs2_dinode_out(&ip->i_di, di);

Expand Down

0 comments on commit 97880be

Please sign in to comment.