--- ./fs/jfs/xattr.c.orig Fri May 9 19:25:18 2003 +++ ./fs/jfs/xattr.c Fri May 9 19:25:28 2003 @@ -646,7 +646,7 @@ if (IS_RDONLY(inode)) return -EROFS; - if (IS_IMMUTABLE(inode) || IS_APPEND(inode) || S_ISLNK(inode->i_mode)) + if (IS_IMMUTABLE_FILE(inode) || IS_APPEND(inode) || S_ISLNK(inode->i_mode)) return -EPERM; if((strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) != 0) && --- ./fs/nfs/dir.c.orig Fri May 9 19:22:34 2003 +++ ./fs/nfs/dir.c Fri May 9 19:24:12 2003 @@ -1245,7 +1245,7 @@ * Nobody gets write access to an immutable file. * */ - if (IS_IMMUTABLE(inode)) + if (IS_IMMUTABLE_FILE(inode)) return -EACCES; }