diff options
author | Yan, Zheng <zyan@redhat.com> | 2016-01-27 09:30:29 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-03-25 18:51:41 +0100 |
commit | a587d71b0a4b222762e9c3a2352f076532685d9f (patch) | |
tree | c73767b03985f56548d3c9dc414551fc4c2e34f9 /fs/ceph/file.c | |
parent | 133e91566ced3e7154db9b68bb3ceb3b30f6900f (diff) | |
download | linux-stable-a587d71b0a4b222762e9c3a2352f076532685d9f.tar.gz linux-stable-a587d71b0a4b222762e9c3a2352f076532685d9f.tar.bz2 linux-stable-a587d71b0a4b222762e9c3a2352f076532685d9f.zip |
ceph: remove useless BUG_ON
ceph_osdc_start_request() never return -EOLDSNAP
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/file.c')
-rw-r--r-- | fs/ceph/file.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index eb9028e8cfc5..6738766f0c12 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -725,7 +725,6 @@ static void ceph_aio_retry_work(struct work_struct *work) ret = ceph_osdc_start_request(req->r_osdc, req, false); out: if (ret < 0) { - BUG_ON(ret == -EOLDSNAPC); req->r_result = ret; ceph_aio_complete_req(req, NULL); } @@ -949,7 +948,6 @@ ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter, ret = ceph_osdc_start_request(req->r_osdc, req, false); if (ret < 0) { - BUG_ON(ret == -EOLDSNAPC); req->r_result = ret; ceph_aio_complete_req(req, NULL); } |