diff options
author | 2015-04-16 12:46:47 -0700 | |
---|---|---|
committer | 2015-04-17 09:04:04 -0400 | |
commit | 0ce187c4f32d77eae077f249aa10656b5eef5f28 (patch) | |
tree | bcac5ad738b1818a37d195e94a6496ef8bb12cdf /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | nilfs2: fix gcc warning at nilfs_checkpoint_is_mounted() (diff) | |
download | wireguard-linux-0ce187c4f32d77eae077f249aa10656b5eef5f28.tar.xz wireguard-linux-0ce187c4f32d77eae077f249aa10656b5eef5f28.zip |
nilfs2: put out gfp mask manipulation from nilfs_set_inode_flags()
nilfs_set_inode_flags() function adjusts gfp-mask of inode->i_mapping as
well as i_flags, however, this coupling of operations is not appropriate.
For instance, nilfs_ioctl_setflags(), one of three callers of
nilfs_set_inode_flags(), doesn't need to reinitialize the gfp-mask at all.
In addition, nilfs_new_inode(), another caller of
nilfs_set_inode_flags(), doesn't either because it has already initialized
the gfp-mask.
Only __nilfs_read_inode(), the remaining caller, needs it. So, this moves
the gfp mask manipulation to __nilfs_read_inode() from
nilfs_set_inode_flags().
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions