Patchwork make new_inode call a little bit clearer.

login
register
mail settings
Submitter jon ernst
Date Sept. 9, 2013, 8:21 p.m.
Message ID <CAGW2f1Gat4KJYOvrKmNRjuNeXcPJ75hpH2-ozzXPX7hCuo5GTg@mail.gmail.com>
Download mbox | patch
Permalink /patch/273707/
State New
Headers show

Comments

jon ernst - Sept. 9, 2013, 8:21 p.m.
Zheng,
on e2fsprog pu branch,
I know it not worth to commit this alone, maybe you combine with you
future commit later.

thank you!




Best,
Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/lib/ext2fs/inline_data.c b/lib/ext2fs/inline_data.c
index ea3736c..4bf19c1 100644
--- a/lib/ext2fs/inline_data.c
+++ b/lib/ext2fs/inline_data.c
@@ -933,7 +933,7 @@  static errcode_t test_file(ext2_filsys fs)
     char *buf, *cmpbuf;
     int inline_size;

-    retval = ext2fs_new_inode(fs, 2, 010755, 0, &newfile);
+    retval = ext2fs_new_inode(fs, EXT2_ROOT_INO, 010755, 0, &newfile);
     if (retval) {
         com_err("test_file", retval,
             "While creating a new file");