diff options
author | Wang Sheng-Hui <shhuiw@gmail.com> | 2011-07-22 15:50:13 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-07-22 19:41:16 +0200 |
commit | 03b5bb342978f99f75fb36d69cd29bab32109fd4 (patch) | |
tree | 495099b74e217de7c322a1bf4737901a1efb8a3a /fs/ext3/inode.c | |
parent | ext3: Fix compilation with -DDX_DEBUG (diff) | |
download | linux-03b5bb342978f99f75fb36d69cd29bab32109fd4.tar.xz linux-03b5bb342978f99f75fb36d69cd29bab32109fd4.zip |
ext2: check xattr name_len before acquiring xattr_sem in ext2_xattr_get
In ext2_xattr_get(), the code will acquire xattr_sem first, later checks
the length of xattr name_len > 255. It's unnecessarily time consuming and
also ext2_xattr_set() checks the length before other checks. So move the
check before acquiring xattr_sem to make these two functions consistent.
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext3/inode.c')
0 files changed, 0 insertions, 0 deletions