xfs: handle duplicate entries in xfs_mru_cache_insert
authorChristoph Hellwig <hch@lst.de>
Tue, 22 Apr 2014 21:11:50 +0000 (07:11 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 22 Apr 2014 21:11:50 +0000 (07:11 +1000)
commitce695c6551f9488e75247ac1eefcd173fda0c029
treefbd28d5e65266788f28bbe3d832498fe855b63d5
parentc977eb1065612bf64e18c61437e290c22183add8
xfs: handle duplicate entries in xfs_mru_cache_insert

The radix tree code can detect and reject duplicate keys at insert
time.  Make xfs_mru_cache_insert handle this case so that future
changes to the filestream allocator can take advantage of this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_mru_cache.c