]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: refactor __ext4_check_dir_entry() to accept start and size
authorTao Ma <boyu.mt@taobao.com>
Mon, 10 Dec 2012 19:05:58 +0000 (14:05 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Dec 2012 19:05:58 +0000 (14:05 -0500)
commit70fcde4e1a424fe8a13d373d3333a7137619b93d
tree72e089868a0856a1968d6118e359d0ae13f5cc91
parent06194c3ff7ae6b106a5d2ce02e7b63fef065d567
ext4: refactor __ext4_check_dir_entry() to accept start and size

The __ext4_check_dir_entry() function() is used to check whether the
de is over the block boundary.  Now with inline data, it could be
within the block boundary while exceeds the inode size.  So check this
function to check the overflow more precisely.

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