pnfsblock: cleanup bl_mark_sectors_init
It does not need to manipulate on partial initialized blocks. Writeback code takes care of it. Signed-off-by: Peng Tao <peng_tao@emc.com> Signed-off-by: Benny Halevy <bhalevy@tonian.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:

committed by
Trond Myklebust

parent
74a6eeb44c
commit
60c52e3a72
@@ -577,8 +577,7 @@ fill_invalid_ext:
|
||||
unlock_page(page);
|
||||
|
||||
ret = bl_mark_sectors_init(be->be_inval, isect,
|
||||
PAGE_CACHE_SECTORS,
|
||||
NULL);
|
||||
PAGE_CACHE_SECTORS);
|
||||
if (unlikely(ret)) {
|
||||
dprintk("%s bl_mark_sectors_init fail %d\n",
|
||||
__func__, ret);
|
||||
@@ -627,8 +626,7 @@ next_page:
|
||||
}
|
||||
if (be->be_state == PNFS_BLOCK_INVALID_DATA) {
|
||||
ret = bl_mark_sectors_init(be->be_inval, isect,
|
||||
PAGE_CACHE_SECTORS,
|
||||
NULL);
|
||||
PAGE_CACHE_SECTORS);
|
||||
if (unlikely(ret)) {
|
||||
dprintk("%s bl_mark_sectors_init fail %d\n",
|
||||
__func__, ret);
|
||||
|
Reference in New Issue
Block a user