xattr.c (6a797d2737838906f2ea0a31686e87c3151e21ca) xattr.c (e2b911c53584a92266943f3b7f2cdbc19c1a4e80)
1/*
2 * linux/fs/ext4/xattr.c
3 *
4 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
5 *
6 * Fix by Harrison Xing <harrison@mountainviewdata.com>.
7 * Ext4 code with a lot of help from Eric Jarman <ejarman@acm.org>.
8 * Extended attributes for symlinks and special files added per

--- 511 unchanged lines hidden (view full) ---

520
521/*
522 * If the EXT4_FEATURE_COMPAT_EXT_ATTR feature of this file system is
523 * not set, set it.
524 */
525static void ext4_xattr_update_super_block(handle_t *handle,
526 struct super_block *sb)
527{
1/*
2 * linux/fs/ext4/xattr.c
3 *
4 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
5 *
6 * Fix by Harrison Xing <harrison@mountainviewdata.com>.
7 * Ext4 code with a lot of help from Eric Jarman <ejarman@acm.org>.
8 * Extended attributes for symlinks and special files added per

--- 511 unchanged lines hidden (view full) ---

520
521/*
522 * If the EXT4_FEATURE_COMPAT_EXT_ATTR feature of this file system is
523 * not set, set it.
524 */
525static void ext4_xattr_update_super_block(handle_t *handle,
526 struct super_block *sb)
527{
528 if (EXT4_HAS_COMPAT_FEATURE(sb, EXT4_FEATURE_COMPAT_EXT_ATTR))
528 if (ext4_has_feature_xattr(sb))
529 return;
530
531 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access");
532 if (ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh) == 0) {
529 return;
530
531 BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access");
532 if (ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh) == 0) {
533 EXT4_SET_COMPAT_FEATURE(sb, EXT4_FEATURE_COMPAT_EXT_ATTR);
533 ext4_set_feature_xattr(sb);
534 ext4_handle_dirty_super(handle, sb);
535 }
536}
537
538/*
539 * Release the xattr block BH: If the reference count is > 1, decrement it;
540 * otherwise free the block.
541 */

--- 1186 unchanged lines hidden ---
534 ext4_handle_dirty_super(handle, sb);
535 }
536}
537
538/*
539 * Release the xattr block BH: If the reference count is > 1, decrement it;
540 * otherwise free the block.
541 */

--- 1186 unchanged lines hidden ---