• J
    reiserfs: journaled xattrs · 0ab2621e
    Jeff Mahoney 提交于
    Deadlocks are possible in the xattr code between the journal lock and the
    xattr sems.
    
    This patch implements journalling for xattr operations. The benefit is
    twofold:
     * It gets rid of the deadlock possibility by always ensuring that xattr
       write operations are initiated inside a transaction.
     * It corrects the problem where xattr backing files aren't considered any
       differently than normal files, despite the fact they are metadata.
    
    I discussed the added journal load with Chris Mason, and we decided that
    since xattrs (versus other journal activity) is fairly rare, the introduction
    of larger transactions to support journaled xattrs wouldn't be too big a deal.
    Signed-off-by: NJeff Mahoney <jeffm@suse.com>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    0ab2621e
reiserfs_acl.h 2.2 KB