diff options
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index d0d1b5a05183..8d0666dd170a 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -2493,7 +2493,7 @@ __xfs_iunpin_wait( | |||
2493 | wait_event(ip->i_ipin_wait, (atomic_read(&ip->i_pincount) == 0)); | 2493 | wait_event(ip->i_ipin_wait, (atomic_read(&ip->i_pincount) == 0)); |
2494 | } | 2494 | } |
2495 | 2495 | ||
2496 | static inline void | 2496 | void |
2497 | xfs_iunpin_wait( | 2497 | xfs_iunpin_wait( |
2498 | xfs_inode_t *ip) | 2498 | xfs_inode_t *ip) |
2499 | { | 2499 | { |
@@ -2849,15 +2849,6 @@ xfs_iflush( | |||
2849 | mp = ip->i_mount; | 2849 | mp = ip->i_mount; |
2850 | 2850 | ||
2851 | /* | 2851 | /* |
2852 | * If the inode isn't dirty, then just release the inode flush lock and | ||
2853 | * do nothing. | ||
2854 | */ | ||
2855 | if (xfs_inode_clean(ip)) { | ||
2856 | xfs_ifunlock(ip); | ||
2857 | return 0; | ||
2858 | } | ||
2859 | |||
2860 | /* | ||
2861 | * We can't flush the inode until it is unpinned, so wait for it if we | 2852 | * We can't flush the inode until it is unpinned, so wait for it if we |
2862 | * are allowed to block. We know noone new can pin it, because we are | 2853 | * are allowed to block. We know noone new can pin it, because we are |
2863 | * holding the inode lock shared and you need to hold it exclusively to | 2854 | * holding the inode lock shared and you need to hold it exclusively to |