diff options
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 9516f5c02151..fcf42eadb69c 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -600,7 +600,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, | |||
600 | int error, free_vfs_inode = 0; | 600 | int error, free_vfs_inode = 0; |
601 | u32 aflags = 0; | 601 | u32 aflags = 0; |
602 | unsigned blocks = 1; | 602 | unsigned blocks = 1; |
603 | struct gfs2_diradd da = { .bh = NULL, }; | 603 | struct gfs2_diradd da = { .bh = NULL, .save_loc = 1, }; |
604 | 604 | ||
605 | if (!name->len || name->len > GFS2_FNAMESIZE) | 605 | if (!name->len || name->len > GFS2_FNAMESIZE) |
606 | return -ENAMETOOLONG; | 606 | return -ENAMETOOLONG; |
@@ -900,7 +900,7 @@ static int gfs2_link(struct dentry *old_dentry, struct inode *dir, | |||
900 | struct gfs2_inode *ip = GFS2_I(inode); | 900 | struct gfs2_inode *ip = GFS2_I(inode); |
901 | struct gfs2_holder ghs[2]; | 901 | struct gfs2_holder ghs[2]; |
902 | struct buffer_head *dibh; | 902 | struct buffer_head *dibh; |
903 | struct gfs2_diradd da = { .bh = NULL, }; | 903 | struct gfs2_diradd da = { .bh = NULL, .save_loc = 1, }; |
904 | int error; | 904 | int error; |
905 | 905 | ||
906 | if (S_ISDIR(inode->i_mode)) | 906 | if (S_ISDIR(inode->i_mode)) |
@@ -1338,7 +1338,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry, | |||
1338 | struct gfs2_rgrpd *nrgd; | 1338 | struct gfs2_rgrpd *nrgd; |
1339 | unsigned int num_gh; | 1339 | unsigned int num_gh; |
1340 | int dir_rename = 0; | 1340 | int dir_rename = 0; |
1341 | struct gfs2_diradd da = { .nr_blocks = 0, }; | 1341 | struct gfs2_diradd da = { .nr_blocks = 0, .save_loc = 0, }; |
1342 | unsigned int x; | 1342 | unsigned int x; |
1343 | int error; | 1343 | int error; |
1344 | 1344 | ||