]> asedeno.scripts.mit.edu Git - linux.git/commit
f2fs: update i_flags correctly
authorChao Yu <yuchao0@huawei.com>
Wed, 30 Aug 2017 10:04:47 +0000 (18:04 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 5 Sep 2017 17:50:21 +0000 (10:50 -0700)
commit11f5020d2f43a9a7b9b5cf22873e5a9a06a884f7
tree555eefbf9072569052e41c1243d37a6317ee7539
parentee605234996627c4fe874ea580e36211fb2bf6d5
f2fs: update i_flags correctly

f2fs enables hash-indexed directory by default, so we need to tag
FS_INDEX_FL in inode::i_flags during directory creataion, in order
to show correct status of inode in lsattr:

Before:
------------------- /mnt/f2fs/dir/
After:
-----------I------- /mnt/f2fs/dir/

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c