diff options
author | Christoph Hellwig <hch@lst.de> | 2011-07-08 16:36:25 +0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2011-07-08 16:36:25 +0400 |
commit | c8da0faf6b07623c473cab42967f943ad4ab7560 (patch) | |
tree | 6bfd211ba798c482f592c81bfbe4760758c829e8 /fs/xfs/xfs_vnodeops.c | |
parent | 0c842ad46a51891ac4420b7285613f4134a65ccd (diff) | |
download | linux-c8da0faf6b07623c473cab42967f943ad4ab7560.tar.xz |
xfs: return the buffer locked from xfs_buf_get_uncached
All other xfs_buf_get/read-like helpers return the buffer locked, make sure
xfs_buf_get_uncached isn't different for no reason. Half of the callers
already lock it directly after, and the others probably should also keep
it locked if only for consistency and beeing able to use xfs_buf_rele,
but I'll leave that for later.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 11242c482771..88d121486c52 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c @@ -1969,6 +1969,8 @@ xfs_zero_remaining_bytes( if (!bp) return XFS_ERROR(ENOMEM); + xfs_buf_unlock(bp); + for (offset = startoff; offset <= endoff; offset = lastoffset + 1) { offset_fsb = XFS_B_TO_FSBT(mp, offset); nimap = 1; |