]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: make ext4_init_dot_dotdot for inline dir usage
authorTao Ma <boyu.mt@taobao.com>
Mon, 10 Dec 2012 19:05:57 +0000 (14:05 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Dec 2012 19:05:57 +0000 (14:05 -0500)
commit51984fba996030bded59547c68b71e21dd63a7d2
treede774f5b58346174e1e867dbf49f7c4604544d48
parentf8d4db5a6d2e37158eb6c31b5849f872ec8688f0
ext4: make ext4_init_dot_dotdot for inline dir usage

Currently, the initialization of dot and dotdot are encapsulated in
ext4_mkdir and also bond with dir_block. So create a new function
named ext4_init_new_dir and the initialization is moved to
ext4_init_dot_dotdot. Now it will called either in the normal non-inline
case(rec_len of ".." will cover the whole block) or when we converting an
inline dir to a block(rec len of ".." will be the real length). The start
of the next entry is also returned for inline dir usage.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/namei.c