Displaying 1 result from an estimated 1 matches for "can_lock".
Did you mean:
can_block
2008 Oct 15
1
[PATCH] ocfs2: Wrap inode block reads in a dedicated function.
...gt; - status = 0;
> -bail:
> - mlog_exit(status);
> - return status;
> + mlog_exit_void();
> }
>
> static int ocfs2_read_locked_inode(struct inode *inode,
> @@ -460,11 +448,15 @@ static int ocfs2_read_locked_inode(struct inode *inode,
> }
> }
>
> - if (can_lock)
> - status = ocfs2_read_blocks(inode, args->fi_blkno, 1, &bh,
> - OCFS2_BH_IGNORE_CACHE);
> - else
> + if (can_lock) {
> + status = ocfs2_read_inode_block_full(inode, args->fi_blkno,
> + &bh,
> + OCFS2_BH_IGNORE_CACHE);
> + } else...