diff options
| author | James Morris <james.l.morris@oracle.com> | 2012-09-28 13:37:32 +1000 | 
|---|---|---|
| committer | James Morris <james.l.morris@oracle.com> | 2012-09-28 13:37:32 +1000 | 
| commit | bf5308344527d015ac9a6d2bda4ad4d40fd7d943 (patch) | |
| tree | 566e61e2cfc648c374d15cfc8c661b73e1a471f8 /fs/xfs/xfs_buf.c | |
| parent | 3585e96cd1049682b8a19a0b699422156e9d735b (diff) | |
| parent | 979570e02981d4a8fc20b3cc8fd651856c98ee9d (diff) | |
| download | olio-linux-3.10-bf5308344527d015ac9a6d2bda4ad4d40fd7d943.tar.xz olio-linux-3.10-bf5308344527d015ac9a6d2bda4ad4d40fd7d943.zip  | |
Merge tag 'v3.6-rc7' into next
Linux 3.6-rc7
Requested by David Howells so he can merge his key susbsystem work into
my tree with requisite -linus changesets.
Diffstat (limited to 'fs/xfs/xfs_buf.c')
| -rw-r--r-- | fs/xfs/xfs_buf.c | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index d7a9dd735e1..933b7930b86 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -96,6 +96,7 @@ xfs_buf_lru_add(  		atomic_inc(&bp->b_hold);  		list_add_tail(&bp->b_lru, &btp->bt_lru);  		btp->bt_lru_nr++; +		bp->b_lru_flags &= ~_XBF_LRU_DISPOSE;  	}  	spin_unlock(&btp->bt_lru_lock);  } @@ -154,7 +155,8 @@ xfs_buf_stale(  		struct xfs_buftarg *btp = bp->b_target;  		spin_lock(&btp->bt_lru_lock); -		if (!list_empty(&bp->b_lru)) { +		if (!list_empty(&bp->b_lru) && +		    !(bp->b_lru_flags & _XBF_LRU_DISPOSE)) {  			list_del_init(&bp->b_lru);  			btp->bt_lru_nr--;  			atomic_dec(&bp->b_hold); @@ -1501,6 +1503,7 @@ xfs_buftarg_shrink(  		 */  		list_move(&bp->b_lru, &dispose);  		btp->bt_lru_nr--; +		bp->b_lru_flags |= _XBF_LRU_DISPOSE;  	}  	spin_unlock(&btp->bt_lru_lock);  |