projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
510022a
)
f2fs: assign parent's i_mode for empty dir
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 30 Mar 2015 22:23:45 +0000
(15:23 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 10 Apr 2015 22:08:58 +0000
(15:08 -0700)
When assigning i_mode for dotdot, it needs to assign parent's i_mode.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/dir.c
b/fs/f2fs/dir.c
index 906b5876dc271638a715a18789f670791f9ba419..3a3302ab78713a6535296252f4ac35f9966beeee 100644
(file)
--- 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,
de->name_len = cpu_to_le16(2);
de->ino = cpu_to_le32(parent->i_ino);
memcpy(d->filename[1], "..", 2);
- set_de_type(de,
inode
->i_mode);
+ set_de_type(de,
parent
->i_mode);
test_and_set_bit_le(0, (void *)d->bitmap);
test_and_set_bit_le(1, (void *)d->bitmap);