diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-05-20 01:51:12 +0200 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-05-20 23:18:05 +0200 |
commit | ac14876cf9255175bf3bdad645bf8aa2b8fb2d7c (patch) | |
tree | 50d4d25c1517808ac65d206d3cc8ed100411eadc /fs/xfs/xfs_dir2_leaf.c | |
parent | xfs: Don't reference the EFI after it is freed (diff) | |
download | linux-ac14876cf9255175bf3bdad645bf8aa2b8fb2d7c.tar.xz linux-ac14876cf9255175bf3bdad645bf8aa2b8fb2d7c.zip |
xfs: fix missing KM_NOFS tags to keep lockdep happy
There are several places where we use KM_SLEEP allocation contexts
and use the fact that they are called from transaction context to
add KM_NOFS where appropriate. Unfortunately, there are several
places where the code makes this assumption but can be called from
outside transaction context but with filesystem locks held. These
places need explicit KM_NOFS annotations to avoid lockdep
complaining about reclaim contexts.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_leaf.c')
-rw-r--r-- | fs/xfs/xfs_dir2_leaf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c index 721ba2fe8e54..da71a1819d78 100644 --- a/fs/xfs/xfs_dir2_leaf.c +++ b/fs/xfs/xfs_dir2_leaf.c @@ -1336,7 +1336,7 @@ xfs_dir2_leaf_getdents( mp->m_sb.sb_blocksize); map_info = kmem_zalloc(offsetof(struct xfs_dir2_leaf_map_info, map) + (length * sizeof(struct xfs_bmbt_irec)), - KM_SLEEP); + KM_SLEEP | KM_NOFS); map_info->map_size = length; /* |