Fabian Frederick:
-Removed old BKL comments
-Typo fix
-Doc precision
PS : Someone could check if lock_super is still needed there ?
--- linux-2.5.74/fs/ext2/xattr.c 2003-07-03 09:34:35.000000000 +0200
* +------------------+
*
* The block header is followed by multiple entry descriptors. These entry
- * descriptors are variable in size, and alligned to EXT2_XATTR_PAD
+ * descriptors are variable in size, and aligned to EXT2_XATTR_PAD
* byte boundaries. The entry descriptors are sorted by attribute name,
* so that two extended attribute blocks can be compared efficiently.
ext2_xattr_handler(int name_index)
{
struct ext2_xattr_handler *handler = NULL;
+
if (name_index > 0 && name_index <= EXT2_XATTR_INDEX_MAX) {
read_lock(&ext2_handler_lock);
* Inode operation getxattr()
*
* dentry->d_inode->i_sem down
- * BKL held [before 2.5.x]
*/
ssize_t
* Inode operation listxattr()
*
* dentry->d_inode->i_sem down
- * BKL held [before 2.5.x]
*/
ssize_t
* Inode operation setxattr()
*
* dentry->d_inode->i_sem down
- * BKL held [before 2.5.x]
*/
int
* Inode operation removexattr()
*
* dentry->d_inode->i_sem down
- * BKL held [before 2.5.x]
*/
int
set_buffer_uptodate(new_bh);
unlock_buffer(new_bh);
ext2_xattr_cache_insert(new_bh);
-
ext2_xattr_update_super_block(sb);
}
* Create a new entry in the extended attribute cache, and insert
* it unless such an entry is already in the cache.
*
- * Returns 0, or a negative error number on failure.
+ * Returns 0 (ok) or -ENOMEM on failure.
*/
static int
struct ext2_xattr_header *header2)
{
struct ext2_xattr_entry *entry1, *entry2;
-
+ /* First entry available after xattr_header */
entry1 = ENTRY(header1+1);
entry2 = ENTRY(header2+1);
while (!IS_LAST_ENTRY(entry1)) {
___________________________________
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/