|
@@ -29,6 +29,7 @@
|
|
#include "xfs_bmap_btree.h"
|
|
#include "xfs_bmap_btree.h"
|
|
#include "xfs_inode.h"
|
|
#include "xfs_inode.h"
|
|
#include "xfs_inode_item.h"
|
|
#include "xfs_inode_item.h"
|
|
|
|
+#include "xfs_trace.h"
|
|
|
|
|
|
/*
|
|
/*
|
|
* Note that we only accept fileids which are long enough rather than allow
|
|
* Note that we only accept fileids which are long enough rather than allow
|
|
@@ -131,8 +132,7 @@ xfs_nfs_get_inode(
|
|
* fine and not an indication of a corrupted filesystem as clients can
|
|
* fine and not an indication of a corrupted filesystem as clients can
|
|
* send invalid file handles and we have to handle it gracefully..
|
|
* send invalid file handles and we have to handle it gracefully..
|
|
*/
|
|
*/
|
|
- error = xfs_iget(mp, NULL, ino, XFS_IGET_UNTRUSTED,
|
|
|
|
- XFS_ILOCK_SHARED, &ip);
|
|
|
|
|
|
+ error = xfs_iget(mp, NULL, ino, XFS_IGET_UNTRUSTED, 0, &ip);
|
|
if (error) {
|
|
if (error) {
|
|
/*
|
|
/*
|
|
* EINVAL means the inode cluster doesn't exist anymore.
|
|
* EINVAL means the inode cluster doesn't exist anymore.
|
|
@@ -147,11 +147,10 @@ xfs_nfs_get_inode(
|
|
}
|
|
}
|
|
|
|
|
|
if (ip->i_d.di_gen != generation) {
|
|
if (ip->i_d.di_gen != generation) {
|
|
- xfs_iput_new(ip, XFS_ILOCK_SHARED);
|
|
|
|
|
|
+ IRELE(ip);
|
|
return ERR_PTR(-ENOENT);
|
|
return ERR_PTR(-ENOENT);
|
|
}
|
|
}
|
|
|
|
|
|
- xfs_iunlock(ip, XFS_ILOCK_SHARED);
|
|
|
|
return VFS_I(ip);
|
|
return VFS_I(ip);
|
|
}
|
|
}
|
|
|
|
|