]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.suse/reiserfs-remove-link-detection.diff
Add a patch to fix Intel E100 wake-on-lan problems.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.suse / reiserfs-remove-link-detection.diff
CommitLineData
6a930a95
BS
1From: Jeff Mahoney <jeffm@suse.com>
2Subject: reiserfs: remove link detection code
3
4 Early in the reiserfs xattr development, there was a plan to use hardlinks
5 to save disk space for identical xattrs. That code never materialized and
6 isn't going to, so this patch removes the detection code.
7
8Signed-off-by: Jeff Mahoney <jeffm@suse.com>
9
10---
11 fs/reiserfs/xattr.c | 13 -------------
12 1 file changed, 13 deletions(-)
13
14--- a/fs/reiserfs/xattr.c
15+++ b/fs/reiserfs/xattr.c
16@@ -432,7 +432,6 @@ reiserfs_xattr_set(struct inode *inode,
17 if (buffer && buffer_size)
18 xahash = xattr_hash(buffer, buffer_size);
19
20- open_file:
21 dentry = get_xa_file_dentry(inode, name, flags);
22 if (IS_ERR(dentry)) {
23 err = PTR_ERR(dentry);
24@@ -441,18 +440,6 @@ reiserfs_xattr_set(struct inode *inode,
25
26 REISERFS_I(inode)->i_flags |= i_has_xattr_dir;
27
28- /* we need to copy it off.. */
29- if (dentry->d_inode->i_nlink > 1) {
30- dput(dentry);
31- err = reiserfs_xattr_del(inode, name);
32- if (err < 0)
33- goto out;
34- /* We just killed the old one, we're not replacing anymore */
35- if (flags & XATTR_REPLACE)
36- flags &= ~XATTR_REPLACE;
37- goto open_file;
38- }
39-
40 /* Resize it so we're ok to write there */
41 newattrs.ia_size = buffer_size;
42 newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;