aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 30ca82a1addf..51ecdb8503b0 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -1034,8 +1034,10 @@ static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl,
1034 gfs2_tune_get(sdp, gt_new_files_directio)) 1034 gfs2_tune_get(sdp, gt_new_files_directio))
1035 di->di_flags |= cpu_to_be32(GFS2_DIF_DIRECTIO); 1035 di->di_flags |= cpu_to_be32(GFS2_DIF_DIRECTIO);
1036 } else if (S_ISDIR(mode)) { 1036 } else if (S_ISDIR(mode)) {
1037 di->di_flags |= cpu_to_be32(dip->i_di.di_flags & GFS2_DIF_INHERIT_DIRECTIO); 1037 di->di_flags |= cpu_to_be32(dip->i_di.di_flags &
1038 di->di_flags |= cpu_to_be32(dip->i_di.di_flags & GFS2_DIF_INHERIT_JDATA); 1038 GFS2_DIF_INHERIT_DIRECTIO);
1039 di->di_flags |= cpu_to_be32(dip->i_di.di_flags &
1040 GFS2_DIF_INHERIT_JDATA);
1039 } 1041 }
1040 1042
1041 di->__pad1 = 0; 1043 di->__pad1 = 0;
@@ -1188,7 +1190,8 @@ static int link_dinode(struct gfs2_inode *dip, struct qstr *name,
1188 * Returns: An inode 1190 * Returns: An inode
1189 */ 1191 */
1190 1192
1191struct inode *gfs2_createi(struct gfs2_holder *ghs, struct qstr *name, unsigned int mode) 1193struct inode *gfs2_createi(struct gfs2_holder *ghs, struct qstr *name,
1194 unsigned int mode)
1192{ 1195{
1193 struct inode *inode; 1196 struct inode *inode;
1194 struct gfs2_inode *dip = get_gl2ip(ghs->gh_gl); 1197 struct gfs2_inode *dip = get_gl2ip(ghs->gh_gl);