mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 16:19:53 +00:00
xfs: kill VN_BAD
Remove this rather pointless wrapper and use is_bad_inode directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
8fab451e3c
commit
cb4c8cc1e9
@ -49,14 +49,6 @@ struct attrlist_cursor_kern;
|
|||||||
Prevent VM access to the pages until
|
Prevent VM access to the pages until
|
||||||
the operation completes. */
|
the operation completes. */
|
||||||
|
|
||||||
/*
|
|
||||||
* Dealing with bad inodes
|
|
||||||
*/
|
|
||||||
static inline int VN_BAD(struct inode *vp)
|
|
||||||
{
|
|
||||||
return is_bad_inode(vp);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some useful predicates.
|
* Some useful predicates.
|
||||||
*/
|
*/
|
||||||
|
@ -1136,7 +1136,7 @@ xfs_inactive(
|
|||||||
* If the inode is already free, then there can be nothing
|
* If the inode is already free, then there can be nothing
|
||||||
* to clean up here.
|
* to clean up here.
|
||||||
*/
|
*/
|
||||||
if (ip->i_d.di_mode == 0 || VN_BAD(VFS_I(ip))) {
|
if (ip->i_d.di_mode == 0 || is_bad_inode(VFS_I(ip))) {
|
||||||
ASSERT(ip->i_df.if_real_bytes == 0);
|
ASSERT(ip->i_df.if_real_bytes == 0);
|
||||||
ASSERT(ip->i_df.if_broot_bytes == 0);
|
ASSERT(ip->i_df.if_broot_bytes == 0);
|
||||||
return VN_INACTIVE_CACHE;
|
return VN_INACTIVE_CACHE;
|
||||||
@ -2448,7 +2448,7 @@ xfs_reclaim(
|
|||||||
ASSERT(!VN_MAPPED(VFS_I(ip)));
|
ASSERT(!VN_MAPPED(VFS_I(ip)));
|
||||||
|
|
||||||
/* bad inode, get out here ASAP */
|
/* bad inode, get out here ASAP */
|
||||||
if (VN_BAD(VFS_I(ip))) {
|
if (is_bad_inode(VFS_I(ip))) {
|
||||||
xfs_ireclaim(ip);
|
xfs_ireclaim(ip);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user