namei.c (db8c246937713e60b7628661ccc187eeb81f2bae) | namei.c (94e07a7590ae855bae0536c42b3086fadc7c83a8) |
---|---|
1/* 2 * namei.c - NILFS pathname lookup operations. 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 503 unchanged lines hidden (view full) --- 512 struct inode *parent) 513{ 514 struct nilfs_fid *fid = (struct nilfs_fid *)fh; 515 struct nilfs_root *root = NILFS_I(inode)->i_root; 516 int type; 517 518 if (parent && *lenp < NILFS_FID_SIZE_CONNECTABLE) { 519 *lenp = NILFS_FID_SIZE_CONNECTABLE; | 1/* 2 * namei.c - NILFS pathname lookup operations. 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 503 unchanged lines hidden (view full) --- 512 struct inode *parent) 513{ 514 struct nilfs_fid *fid = (struct nilfs_fid *)fh; 515 struct nilfs_root *root = NILFS_I(inode)->i_root; 516 int type; 517 518 if (parent && *lenp < NILFS_FID_SIZE_CONNECTABLE) { 519 *lenp = NILFS_FID_SIZE_CONNECTABLE; |
520 return 255; | 520 return FILEID_INVALID; |
521 } 522 if (*lenp < NILFS_FID_SIZE_NON_CONNECTABLE) { 523 *lenp = NILFS_FID_SIZE_NON_CONNECTABLE; | 521 } 522 if (*lenp < NILFS_FID_SIZE_NON_CONNECTABLE) { 523 *lenp = NILFS_FID_SIZE_NON_CONNECTABLE; |
524 return 255; | 524 return FILEID_INVALID; |
525 } 526 527 fid->cno = root->cno; 528 fid->ino = inode->i_ino; 529 fid->gen = inode->i_generation; 530 531 if (parent) { 532 fid->parent_ino = parent->i_ino; --- 44 unchanged lines hidden --- | 525 } 526 527 fid->cno = root->cno; 528 fid->ino = inode->i_ino; 529 fid->gen = inode->i_generation; 530 531 if (parent) { 532 fid->parent_ino = parent->i_ino; --- 44 unchanged lines hidden --- |