summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log_rlimit.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-06-06 15:21:10 +1000
committerDave Chinner <david@fromorbit.com>2014-06-06 15:21:10 +1000
commit33a6039007af112509f48910e62640dadd064322 (patch)
treecb0b687f696d4959fb2372702bca94f13b4a5864 /fs/xfs/xfs_log_rlimit.c
parentbc85178a7668db835666c6a5bd53436eebfc94b1 (diff)
downloadblackbird-op-linux-33a6039007af112509f48910e62640dadd064322.tar.gz
blackbird-op-linux-33a6039007af112509f48910e62640dadd064322.zip
xfs: use xfs_da_geometry for block size in attr code
Rather than using the superblock value obtained through the xfs_mount. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_log_rlimit.c')
-rw-r--r--fs/xfs/xfs_log_rlimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_rlimit.c b/fs/xfs/xfs_log_rlimit.c
index 2af1a0a4d0f1..ee7e0e80246b 100644
--- a/fs/xfs/xfs_log_rlimit.c
+++ b/fs/xfs/xfs_log_rlimit.c
@@ -42,7 +42,7 @@ xfs_log_calc_max_attrsetm_res(
int size;
int nblks;
- size = xfs_attr_leaf_entsize_local_max(mp->m_sb.sb_blocksize) -
+ size = xfs_attr_leaf_entsize_local_max(mp->m_attr_geo->blksize) -
MAXNAMELEN - 1;
nblks = XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK);
nblks += XFS_B_TO_FSB(mp, size);
OpenPOWER on IntegriCloud