aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_filestream.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_filestream.c')
-rw-r--r--fs/xfs/xfs_filestream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c
index c4c130f9bfb6..a51353a1f87f 100644
--- a/fs/xfs/xfs_filestream.c
+++ b/fs/xfs/xfs_filestream.c
@@ -151,7 +151,7 @@ xfs_filestream_pick_ag(
151 xfs_agnumber_t ag, max_ag = NULLAGNUMBER; 151 xfs_agnumber_t ag, max_ag = NULLAGNUMBER;
152 int err, trylock, nscan; 152 int err, trylock, nscan;
153 153
154 ASSERT(S_ISDIR(ip->i_d.di_mode)); 154 ASSERT(S_ISDIR(VFS_I(ip)->i_mode));
155 155
156 /* 2% of an AG's blocks must be free for it to be chosen. */ 156 /* 2% of an AG's blocks must be free for it to be chosen. */
157 minfree = mp->m_sb.sb_agblocks / 50; 157 minfree = mp->m_sb.sb_agblocks / 50;
@@ -319,7 +319,7 @@ xfs_filestream_lookup_ag(
319 xfs_agnumber_t startag, ag = NULLAGNUMBER; 319 xfs_agnumber_t startag, ag = NULLAGNUMBER;
320 struct xfs_mru_cache_elem *mru; 320 struct xfs_mru_cache_elem *mru;
321 321
322 ASSERT(S_ISREG(ip->i_d.di_mode)); 322 ASSERT(S_ISREG(VFS_I(ip)->i_mode));
323 323
324 pip = xfs_filestream_get_parent(ip); 324 pip = xfs_filestream_get_parent(ip);
325 if (!pip) 325 if (!pip)