X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fstatahead.c;h=40feefbbc2eb036412f0f9770b4314e3cda200e3;hp=43db649ec53887402959eed1ba3d118aa77c3c84;hb=76b7ce7c6faa1860fe489c7e5e2ee302d6af6bcc;hpb=f77e53d3656504c804fe3dd0a3fb72080229b648 diff --git a/lustre/llite/statahead.c b/lustre/llite/statahead.c index 43db649..40feefb 100644 --- a/lustre/llite/statahead.c +++ b/lustre/llite/statahead.c @@ -577,7 +577,7 @@ static void ll_agl_trigger(struct inode *inode, struct ll_statahead_info *sai) * the MDT holds the layout lock so the glimpse will block up to the * end of restore (statahead/agl will block) */ - if (ll_file_test_flag(lli, LLIF_FILE_RESTORING)) { + if (test_bit(LLIF_FILE_RESTORING, &lli->lli_flags)) { lli->lli_agl_index = 0; iput(inode); RETURN_EXIT;