]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: let ext4_rename handle inline dir
authorTao Ma <boyu.mt@taobao.com>
Mon, 10 Dec 2012 19:06:01 +0000 (14:06 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Dec 2012 19:06:01 +0000 (14:06 -0500)
commit4f33f594749517b4c1a7124253d7478e72521d8e
treec11441065aa244746f17bf0efd322fe6dd06c04c
parentc36fe11bc52bff0c2fc6f9c38317e9493044c300
ext4: let ext4_rename handle inline dir

In case we rename a directory, ext4_rename has to read the dir block
and change its dotdot's information.  The old ext4_rename encapsulated
the dir_block read into itself.  So this patch adds a new function
ext4_get_first_dir_block() which gets the dir buffer information so
the ext4_rename can handle it properly.  As it will also change the
parent inode number, we return the parent_de so that ext4_rename() can
handle it more easily.

ext4_find_entry is also changed so that the caller(rename) can tell
whether the found entry is an inlined one or not and journaling the
corresponding buffer head.

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