diff options
Diffstat (limited to 'fs/xfs/xfs_iget.c')
-rw-r--r-- | fs/xfs/xfs_iget.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c index 7f81397eeec2..1bb4365e8c25 100644 --- a/fs/xfs/xfs_iget.c +++ b/fs/xfs/xfs_iget.c | |||
@@ -317,9 +317,10 @@ xfs_iget_cache_miss( | |||
317 | /* | 317 | /* |
318 | * Preload the radix tree so we can insert safely under the | 318 | * Preload the radix tree so we can insert safely under the |
319 | * write spinlock. Note that we cannot sleep inside the preload | 319 | * write spinlock. Note that we cannot sleep inside the preload |
320 | * region. | 320 | * region. Since we can be called from transaction context, don't |
321 | * recurse into the file system. | ||
321 | */ | 322 | */ |
322 | if (radix_tree_preload(GFP_KERNEL)) { | 323 | if (radix_tree_preload(GFP_NOFS)) { |
323 | error = EAGAIN; | 324 | error = EAGAIN; |
324 | goto out_destroy; | 325 | goto out_destroy; |
325 | } | 326 | } |