diff options
Diffstat (limited to 'fs/xfs/xfs_attr.c')
-rw-r--r-- | fs/xfs/xfs_attr.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c index 4ece1906bd41..8fe6f6b78a4a 100644 --- a/fs/xfs/xfs_attr.c +++ b/fs/xfs/xfs_attr.c | |||
@@ -123,9 +123,13 @@ xfs_inode_hasattr( | |||
123 | * Overall external interface routines. | 123 | * Overall external interface routines. |
124 | *========================================================================*/ | 124 | *========================================================================*/ |
125 | 125 | ||
126 | int | 126 | STATIC int |
127 | xfs_attr_fetch(xfs_inode_t *ip, struct xfs_name *name, | 127 | xfs_attr_get_int( |
128 | char *value, int *valuelenp, int flags) | 128 | struct xfs_inode *ip, |
129 | struct xfs_name *name, | ||
130 | char *value, | ||
131 | int *valuelenp, | ||
132 | int flags) | ||
129 | { | 133 | { |
130 | xfs_da_args_t args; | 134 | xfs_da_args_t args; |
131 | int error; | 135 | int error; |
@@ -188,7 +192,7 @@ xfs_attr_get( | |||
188 | return error; | 192 | return error; |
189 | 193 | ||
190 | xfs_ilock(ip, XFS_ILOCK_SHARED); | 194 | xfs_ilock(ip, XFS_ILOCK_SHARED); |
191 | error = xfs_attr_fetch(ip, &xname, value, valuelenp, flags); | 195 | error = xfs_attr_get_int(ip, &xname, value, valuelenp, flags); |
192 | xfs_iunlock(ip, XFS_ILOCK_SHARED); | 196 | xfs_iunlock(ip, XFS_ILOCK_SHARED); |
193 | return(error); | 197 | return(error); |
194 | } | 198 | } |
@@ -2143,8 +2147,8 @@ xfs_attr_rmtval_set(xfs_da_args_t *args) | |||
2143 | dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock), | 2147 | dblkno = XFS_FSB_TO_DADDR(mp, map.br_startblock), |
2144 | blkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); | 2148 | blkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); |
2145 | 2149 | ||
2146 | bp = xfs_buf_get_flags(mp->m_ddev_targp, dblkno, blkcnt, | 2150 | bp = xfs_buf_get(mp->m_ddev_targp, dblkno, blkcnt, |
2147 | XFS_BUF_LOCK | XBF_DONT_BLOCK); | 2151 | XFS_BUF_LOCK | XBF_DONT_BLOCK); |
2148 | ASSERT(bp); | 2152 | ASSERT(bp); |
2149 | ASSERT(!XFS_BUF_GETERROR(bp)); | 2153 | ASSERT(!XFS_BUF_GETERROR(bp)); |
2150 | 2154 | ||