export.c (9cdf083f981b8d37b3212400a359368661385099) | export.c (6a1bd4a5788435b6ef1664383604b43607eb825a) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * export.c 5 * 6 * Functions to facilitate NFS exporting 7 * 8 * Copyright (C) 2002, 2005 Oracle. All rights reserved. --- 46 unchanged lines hidden (view full) --- 55 56 if (handle->ih_blkno == 0) { 57 mlog_errno(-ESTALE); 58 return ERR_PTR(-ESTALE); 59 } 60 61 inode = ocfs2_iget(OCFS2_SB(sb), handle->ih_blkno, 0); 62 | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * export.c 5 * 6 * Functions to facilitate NFS exporting 7 * 8 * Copyright (C) 2002, 2005 Oracle. All rights reserved. --- 46 unchanged lines hidden (view full) --- 55 56 if (handle->ih_blkno == 0) { 57 mlog_errno(-ESTALE); 58 return ERR_PTR(-ESTALE); 59 } 60 61 inode = ocfs2_iget(OCFS2_SB(sb), handle->ih_blkno, 0); 62 |
63 if (IS_ERR(inode)) { 64 mlog_errno(PTR_ERR(inode)); | 63 if (IS_ERR(inode)) |
65 return (void *)inode; | 64 return (void *)inode; |
66 } | |
67 68 if (handle->ih_generation != inode->i_generation) { 69 iput(inode); | 65 66 if (handle->ih_generation != inode->i_generation) { 67 iput(inode); |
70 mlog_errno(-ESTALE); | |
71 return ERR_PTR(-ESTALE); 72 } 73 74 result = d_alloc_anon(inode); 75 76 if (!result) { 77 iput(inode); 78 mlog_errno(-ENOMEM); --- 176 unchanged lines hidden --- | 68 return ERR_PTR(-ESTALE); 69 } 70 71 result = d_alloc_anon(inode); 72 73 if (!result) { 74 iput(inode); 75 mlog_errno(-ENOMEM); --- 176 unchanged lines hidden --- |