Skip to contentSkip to conversation

fs/9p: Fix revalidate to return correct value

PATCH New Aneesh Kumar K.V 1 participant 1 message Mar 23, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/9p: Fix revalidate to return correct value

revalidate should return > 0 on success.

---
 fs/9p/vfs_dentry.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/9p/vfs_dentry.c +1 -1
index b6a3b9f..59c5ddc 100644
@@ -126,7 +126,7 @@ static int v9fs_lookup_revalidate(struct dentry *dentry, struct nameidata *nd)
 			retval = v9fs_refresh_inode_dotl(fid, inode);
 		else
 			retval = v9fs_refresh_inode(fid, inode);
-		if (retval <= 0)
+		if (retval < 0)
 			return retval;
 	}
 out_valid:
Signature · 1 line
1.7.1