From 5a2687a14329086992626aca25890afa7ff3131c Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 29 May 2002 18:30:03 +0000 Subject: [PATCH] Remove VFS extended attribute interface so that extN will build even if the kernel patch does not have the EA stuff in it (we no longer need this interface as obdfilter calls the exported EA functions directly). --- lustre/extN/linux-2.4.18ea-0.8.26.diff | 70 ---------------------------------- 1 file changed, 70 deletions(-) diff --git a/lustre/extN/linux-2.4.18ea-0.8.26.diff b/lustre/extN/linux-2.4.18ea-0.8.26.diff index c9870b6..1fa605e 100644 --- a/lustre/extN/linux-2.4.18ea-0.8.26.diff +++ b/lustre/extN/linux-2.4.18ea-0.8.26.diff @@ -22,27 +22,6 @@ After extracting the linux-2.4.18.tar.gz package, apply this patch as follows: cd linux patch -p1 < ../linux-2.4.18ea-0.8.26.patch -diff -Nur linux-2.4.18/fs/ext3/file.c linux-2.4.18ea/fs/ext3/file.c ---- linux-2.4.18/fs/ext3/file.c Thu Nov 15 22:37:55 2001 -+++ linux-2.4.18ea/fs/ext3/file.c Sun Feb 24 04:34:43 2002 -@@ -23,6 +23,7 @@ - #include - #include - #include -+#include - #include - #include - -@@ -90,5 +91,9 @@ - struct inode_operations ext3_file_inode_operations = { - truncate: ext3_truncate, /* BKL held */ - setattr: ext3_setattr, /* BKL held */ -+ setxattr: ext3_setxattr, /* BKL held */ -+ getxattr: ext3_getxattr, /* BKL held */ -+ listxattr: ext3_listxattr, /* BKL held */ -+ removexattr: ext3_removexattr, /* BKL held */ - }; - diff -Nur linux-2.4.18/fs/ext3/ialloc.c linux-2.4.18ea/fs/ext3/ialloc.c --- linux-2.4.18/fs/ext3/ialloc.c Sun Feb 24 04:42:59 2002 +++ linux-2.4.18ea/fs/ext3/ialloc.c Sun Feb 24 04:34:43 2002 @@ -228,23 +207,6 @@ diff -Nur linux-2.4.18/fs/ext3/namei.c linux-2.4.18ea/fs/ext3/namei.c inode->i_mapping->a_ops = &ext3_aops; /* * block_symlink() calls back into ext3_prepare/commit_write. -@@ -1122,4 +1124,16 @@ - rmdir: ext3_rmdir, /* BKL held */ - mknod: ext3_mknod, /* BKL held */ - rename: ext3_rename, /* BKL held */ -+ setxattr: ext3_setxattr, /* BKL held */ -+ getxattr: ext3_getxattr, /* BKL held */ -+ listxattr: ext3_listxattr, /* BKL held */ -+ removexattr: ext3_removexattr, /* BKL held */ - }; -+ -+struct inode_operations ext3_special_inode_operations = { -+ setxattr: ext3_setxattr, /* BKL held */ -+ getxattr: ext3_getxattr, /* BKL held */ -+ listxattr: ext3_listxattr, /* BKL held */ -+ removexattr: ext3_removexattr, /* BKL held */ -+}; -+ diff -Nur linux-2.4.18/fs/ext3/super.c linux-2.4.18ea/fs/ext3/super.c --- linux-2.4.18/fs/ext3/super.c Sun Feb 24 04:42:59 2002 +++ linux-2.4.18ea/fs/ext3/super.c Thu Apr 4 21:41:05 2002 @@ -294,38 +256,6 @@ diff -Nur linux-2.4.18/fs/ext3/super.c linux-2.4.18ea/fs/ext3/super.c } EXPORT_NO_SYMBOLS; -diff -Nur linux-2.4.18/fs/ext3/symlink.c linux-2.4.18ea/fs/ext3/symlink.c ---- linux-2.4.18/fs/ext3/symlink.c Fri Nov 9 23:25:04 2001 -+++ linux-2.4.18ea/fs/ext3/symlink.c Mon Mar 11 03:27:00 2002 -@@ -20,6 +20,7 @@ - #include - #include - #include -+#include - - static int ext3_readlink(struct dentry *dentry, char *buffer, int buflen) - { -@@ -33,7 +34,20 @@ - return vfs_follow_link(nd, s); - } - -+struct inode_operations ext3_symlink_inode_operations = { -+ readlink: page_readlink, /* BKL not held. Don't need */ -+ follow_link: page_follow_link, /* BKL not held. Don't need */ -+ setxattr: ext3_setxattr, /* BKL held */ -+ getxattr: ext3_getxattr, /* BKL held */ -+ listxattr: ext3_listxattr, /* BKL held */ -+ removexattr: ext3_removexattr, /* BKL held */ -+}; -+ - struct inode_operations ext3_fast_symlink_inode_operations = { - readlink: ext3_readlink, /* BKL not held. Don't need */ - follow_link: ext3_follow_link, /* BKL not held. Don't need */ -+ setxattr: ext3_setxattr, /* BKL held */ -+ getxattr: ext3_getxattr, /* BKL held */ -+ listxattr: ext3_listxattr, /* BKL held */ -+ removexattr: ext3_removexattr, /* BKL held */ - }; diff -Nur linux-2.4.18/fs/ext3/xattr.c linux-2.4.18ea/fs/ext3/xattr.c --- linux-2.4.18/fs/ext3/xattr.c Thu Jan 1 01:00:00 1970 +++ linux-2.4.18ea/fs/ext3/xattr.c Wed Apr 3 13:19:05 2002 -- 1.8.3.1