Skip to content

Commit 38f8af2

Browse files
committed
udf: Remove GFP_NOFS allocation in udf_expand_file_adinicb()
udf_expand_file_adinicb() is called under inode->i_rwsem and mapping->invalidate_lock. i_rwsem is safe wrt fs reclaim, invalidate_lock on this inode is safe as well (we hold inode reference so reclaim will not touch it, furthermore even lockdep should not complain as invalidate_lock is acquired from udf_evict_inode() only when truncating inode which should not happen from fs reclaim). Signed-off-by: Jan Kara <[email protected]>
1 parent b27ffdc commit 38f8af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/udf/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ int udf_expand_file_adinicb(struct inode *inode)
357357
return 0;
358358
}
359359

360-
page = find_or_create_page(inode->i_mapping, 0, GFP_NOFS);
360+
page = find_or_create_page(inode->i_mapping, 0, GFP_KERNEL);
361361
if (!page)
362362
return -ENOMEM;
363363

0 commit comments

Comments
 (0)