shmem.c (3451538a114d738a6528b1da58e19e7d8964c647) | shmem.c (94e07a7590ae855bae0536c42b3086fadc7c83a8) |
---|---|
1/* 2 * Resizable virtual memory filesystem for Linux. 3 * 4 * Copyright (C) 2000 Linus Torvalds. 5 * 2000 Transmeta Corp. 6 * 2000-2001 Christoph Rohland 7 * 2000-2001 SAP AG 8 * 2002 Red Hat Inc. --- 2337 unchanged lines hidden (view full) --- 2346 return dentry; 2347} 2348 2349static int shmem_encode_fh(struct inode *inode, __u32 *fh, int *len, 2350 struct inode *parent) 2351{ 2352 if (*len < 3) { 2353 *len = 3; | 1/* 2 * Resizable virtual memory filesystem for Linux. 3 * 4 * Copyright (C) 2000 Linus Torvalds. 5 * 2000 Transmeta Corp. 6 * 2000-2001 Christoph Rohland 7 * 2000-2001 SAP AG 8 * 2002 Red Hat Inc. --- 2337 unchanged lines hidden (view full) --- 2346 return dentry; 2347} 2348 2349static int shmem_encode_fh(struct inode *inode, __u32 *fh, int *len, 2350 struct inode *parent) 2351{ 2352 if (*len < 3) { 2353 *len = 3; |
2354 return 255; | 2354 return FILEID_INVALID; |
2355 } 2356 2357 if (inode_unhashed(inode)) { 2358 /* Unfortunately insert_inode_hash is not idempotent, 2359 * so as we hash inodes here rather than at creation 2360 * time, we need a lock to ensure we only try 2361 * to do it once 2362 */ --- 637 unchanged lines hidden --- | 2355 } 2356 2357 if (inode_unhashed(inode)) { 2358 /* Unfortunately insert_inode_hash is not idempotent, 2359 * so as we hash inodes here rather than at creation 2360 * time, we need a lock to ensure we only try 2361 * to do it once 2362 */ --- 637 unchanged lines hidden --- |