aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2012-12-08 00:54:18 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2012-12-10 23:43:44 -0500
commita0d42539e1d6c818222822dedd92a1674040e20c (patch)
tree22df42f411784f5dac02b34f1c34522dd9d8e41c /fs/f2fs
parentc212991a6bc3ba120d41205a294c5b89f05f1535 (diff)
f2fs: make use of GFP_F2FS_ZERO for setting gfp_mask
Since, GFP_NOFS and __GFP_ZERO is being used to set gfp_mask. We can instead make use of already predefined macro GFP_F2FS_ZERO. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 2d720ca47071..89b7675dc377 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -293,7 +293,7 @@ static int f2fs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
293 inode->i_op = &f2fs_dir_inode_operations; 293 inode->i_op = &f2fs_dir_inode_operations;
294 inode->i_fop = &f2fs_dir_operations; 294 inode->i_fop = &f2fs_dir_operations;
295 inode->i_mapping->a_ops = &f2fs_dblock_aops; 295 inode->i_mapping->a_ops = &f2fs_dblock_aops;
296 mapping_set_gfp_mask(inode->i_mapping, GFP_NOFS | __GFP_ZERO); 296 mapping_set_gfp_mask(inode->i_mapping, GFP_F2FS_ZERO);
297 297
298 set_inode_flag(F2FS_I(inode), FI_INC_LINK); 298 set_inode_flag(F2FS_I(inode), FI_INC_LINK);
299 err = f2fs_add_link(dentry, inode); 299 err = f2fs_add_link(dentry, inode);