aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index cc12072f8787..67afba5117f2 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2220,12 +2220,14 @@ static struct dentry *shmem_fh_to_dentry(struct super_block *sb,
2220{ 2220{
2221 struct inode *inode; 2221 struct inode *inode;
2222 struct dentry *dentry = NULL; 2222 struct dentry *dentry = NULL;
2223 u64 inum = fid->raw[2]; 2223 u64 inum;
2224 inum = (inum << 32) | fid->raw[1];
2225 2224
2226 if (fh_len < 3) 2225 if (fh_len < 3)
2227 return NULL; 2226 return NULL;
2228 2227
2228 inum = fid->raw[2];
2229 inum = (inum << 32) | fid->raw[1];
2230
2229 inode = ilookup5(sb, (unsigned long)(inum + fid->raw[0]), 2231 inode = ilookup5(sb, (unsigned long)(inum + fid->raw[0]),
2230 shmem_match, fid->raw); 2232 shmem_match, fid->raw);
2231 if (inode) { 2233 if (inode) {