diff options
author | Eric Paris <eparis@redhat.com> | 2011-01-10 12:11:00 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:11:00 -0500 |
commit | f1dffc4c5431c6bd8972489636573c5cd09ab672 (patch) | |
tree | a23a5ccffc0ecf3862ff7ecc70011efecd22ba39 /fs/ext4 | |
parent | f7c21177af0b32a2cd9ee36189637f0c1f0e1e17 (diff) |
ext4: ext4_ext_migrate should use NULL not 0
ext4_ext_migrate() calls ext4_new_inode() and passes 0 instead of a pointer
to a struct qstr. This patch uses NULL, to make it obvious to the caller
that this was a pointer.
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/migrate.c b/fs/ext4/migrate.c index 25f3a974b725..b0a126f23c20 100644 --- a/fs/ext4/migrate.c +++ b/fs/ext4/migrate.c | |||
@@ -496,7 +496,7 @@ int ext4_ext_migrate(struct inode *inode) | |||
496 | goal = (((inode->i_ino - 1) / EXT4_INODES_PER_GROUP(inode->i_sb)) * | 496 | goal = (((inode->i_ino - 1) / EXT4_INODES_PER_GROUP(inode->i_sb)) * |
497 | EXT4_INODES_PER_GROUP(inode->i_sb)) + 1; | 497 | EXT4_INODES_PER_GROUP(inode->i_sb)) + 1; |
498 | tmp_inode = ext4_new_inode(handle, inode->i_sb->s_root->d_inode, | 498 | tmp_inode = ext4_new_inode(handle, inode->i_sb->s_root->d_inode, |
499 | S_IFREG, 0, goal); | 499 | S_IFREG, NULL, goal); |
500 | if (IS_ERR(tmp_inode)) { | 500 | if (IS_ERR(tmp_inode)) { |
501 | retval = -ENOMEM; | 501 | retval = -ENOMEM; |
502 | ext4_journal_stop(handle); | 502 | ext4_journal_stop(handle); |