diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 906b5876dc27..3a3302ab7871 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c | |||
@@ -334,7 +334,7 @@ void do_make_empty_dir(struct inode *inode, struct inode *parent, | |||
334 | de->name_len = cpu_to_le16(2); | 334 | de->name_len = cpu_to_le16(2); |
335 | de->ino = cpu_to_le32(parent->i_ino); | 335 | de->ino = cpu_to_le32(parent->i_ino); |
336 | memcpy(d->filename[1], "..", 2); | 336 | memcpy(d->filename[1], "..", 2); |
337 | set_de_type(de, inode->i_mode); | 337 | set_de_type(de, parent->i_mode); |
338 | 338 | ||
339 | test_and_set_bit_le(0, (void *)d->bitmap); | 339 | test_and_set_bit_le(0, (void *)d->bitmap); |
340 | test_and_set_bit_le(1, (void *)d->bitmap); | 340 | test_and_set_bit_le(1, (void *)d->bitmap); |