Skip to contentSkip to conversation

orangefs: Remove commented out code in find_cached_xattr

PATCH In review Thorsten Blum 2 participants 3 messages Dec 21, 2025 – Jun 15 Orangefs filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 orangefs: Remove commented out code in find_cached_xattr

The code has been commented out since 2017 - remove it.

---
 fs/orangefs/xattr.c | 5 -----
 1 file changed, 5 deletions(-)
fs/orangefs/xattr.c +0 -5
index eee3c5ed1bbb..4043942a3c33 100644
@@ -72,11 +72,6 @@ static struct orangefs_cached_xattr *find_cached_xattr(struct inode *inode,
 	if (hlist_empty(h))
 		return NULL;
 	hlist_for_each_entry_safe(cx, tmp, h, node) {
-/*		if (!time_before(jiffies, cx->timeout)) {
-			hlist_del(&cx->node);
-			kfree(cx);
-			continue;
-		}*/
 		if (!strcmp(cx->key, key))
 			return cx;
 	}
Signature · 2 lines
Thorsten Blum <[email protected]>
GPG: 1D60 735E 8AEF 3BE4 73B6  9D84 7336 78FD 8DFE EAD4
#1 lore raw

Gentle ping or do you prefer to keep this for some reason?

Quoted 23 lines · Thorsten Blum

The code has been commented out since 2017 - remove it.

---
 fs/orangefs/xattr.c | 5 -----
 1 file changed, 5 deletions(-)
fs/orangefs/xattr.c +0 -5
index eee3c5ed1bbb..4043942a3c33 100644
@@ -72,11 +72,6 @@ static struct orangefs_cached_xattr *find_cached_xattr(struct inode *inode,
 	if (hlist_empty(h))
 		return NULL;
 	hlist_for_each_entry_safe(cx, tmp, h, node) {
-/*		if (!time_before(jiffies, cx->timeout)) {
-			hlist_del(&cx->node);
-			kfree(cx);
-			continue;
-		}*/
 		if (!strcmp(cx->key, key))
 			return cx;
 	}
maintainer
#2 lore raw

Hey Thorsten...

I have clattered along through this development cycle without finishing the stuff I wanted to try and send up. I was going to put yours in there... I hope next time around is OK...

-Mike

Quoted 27 lines · Thorsten Blum

Gentle ping or do you prefer to keep this for some reason?

Quoted 23 lines · Thorsten Blum

The code has been commented out since 2017 - remove it.

---
 fs/orangefs/xattr.c | 5 -----
 1 file changed, 5 deletions(-)
fs/orangefs/xattr.c +0 -5
index eee3c5ed1bbb..4043942a3c33 100644
@@ -72,11 +72,6 @@ static struct orangefs_cached_xattr *find_cached_xattr(struct inode *inode,
      if (hlist_empty(h))
              return NULL;
      hlist_for_each_entry_safe(cx, tmp, h, node) {
-/*           if (!time_before(jiffies, cx->timeout)) {
-                     hlist_del(&cx->node);
-                     kfree(cx);
-                     continue;
-             }*/
              if (!strcmp(cx->key, key))
                      return cx;
      }