• Jan Kara's avatar
    ext4: shortcut setting of xattr to the same value · 3fd16462
    Jan Kara authored
    When someone tried to set xattr to the same value (i.e., not changing
    anything) we did all the work of removing original xattr, possibly
    breaking references to shared xattr block, inserting new xattr, and
    merging xattr blocks again. Since this is not so rare operation and it
    is relatively cheap for us to detect this case, check for this and
    shortcut xattr setting in that case.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    3fd16462
xattr.c 47 KB