]> git.hungrycats.org Git - linux/commit
[PATCH] Extended attribute sharing and debug macro typo fixes
authorAndrew Morton <akpm@digeo.com>
Sat, 8 Mar 2003 11:27:42 +0000 (03:27 -0800)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Sat, 8 Mar 2003 11:27:42 +0000 (03:27 -0800)
commitf6da87caaefffe786e83ca23af7390d7b25456ed
treea46b751005ec12e29194f0c50949353e5b04d82b
parent3ed88a51ae0dd0cbc182d1bf304478cf9c228a0e
[PATCH] Extended attribute sharing and debug macro typo fixes

Patch from Andreas Gruenbacher <agruen@suse.de>

Tony Dziedzic has found two bugs in the extended attributes code. Patches with
explanations are attached.

1: Extended attribute sharing on ext2/ext3 not working

   The mb_cache_entry_insert function constantly returns an -EBUSY error
   instead of 0, which causes the xattr cache that is needed by the xattr
   sharing mechanism on ext2/ext3 to not share anything.  This patch fixes
   the problem.  (It is possible that after applying this fix we will hit
   bugs in code that wasn't used before.)

2: Oops in one of the xattr debug statements: The old_bh variable is NULL
   if an inode that previously had no EA's assigned would share an EA block
   with another inode.  (This was hidden by the xattr sharing bug).
fs/ext2/xattr.c
fs/ext3/xattr.c
fs/mbcache.c