super.c (f1615bbe9be4def59c3b3eaddb60722efeed16c2) | super.c (d6b7d4b31dfd5a454a71c445b8086bc098237334) |
---|---|
1/* 2 * fs/f2fs/super.c 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 675 unchanged lines hidden (view full) --- 684}; 685 686static struct inode *f2fs_nfs_get_inode(struct super_block *sb, 687 u64 ino, u32 generation) 688{ 689 struct f2fs_sb_info *sbi = F2FS_SB(sb); 690 struct inode *inode; 691 | 1/* 2 * fs/f2fs/super.c 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 675 unchanged lines hidden (view full) --- 684}; 685 686static struct inode *f2fs_nfs_get_inode(struct super_block *sb, 687 u64 ino, u32 generation) 688{ 689 struct f2fs_sb_info *sbi = F2FS_SB(sb); 690 struct inode *inode; 691 |
692 if (unlikely(ino < F2FS_ROOT_INO(sbi))) | 692 if (check_nid_range(sbi, ino)) |
693 return ERR_PTR(-ESTALE); | 693 return ERR_PTR(-ESTALE); |
694 if (unlikely(ino >= NM_I(sbi)->max_nid)) 695 return ERR_PTR(-ESTALE); | |
696 697 /* 698 * f2fs_iget isn't quite right if the inode is currently unallocated! 699 * However f2fs_iget currently does appropriate checks to handle stale 700 * inodes so everything is OK. 701 */ 702 inode = f2fs_iget(sb, ino); 703 if (IS_ERR(inode)) --- 520 unchanged lines hidden --- | 694 695 /* 696 * f2fs_iget isn't quite right if the inode is currently unallocated! 697 * However f2fs_iget currently does appropriate checks to handle stale 698 * inodes so everything is OK. 699 */ 700 inode = f2fs_iget(sb, ino); 701 if (IS_ERR(inode)) --- 520 unchanged lines hidden --- |